Latex / Python

  1. Eclipse Pygments Style
  2. Lexers
    1. Drools Pygments Lexer
    2. Crocopat Pygments Lexer
    3. OCL Pygments Lexer
    4. LTL Pygments Lexer
    5. Jess Pygments Lexer
    6. Jena Pygments Lexer
    7. Checks Pygments Style
    8. Xtend Pygments Style
    9. Alloy Pygments Style
    10. IDL Pygments Style
    11. OWL Functional Pygments Style

Pygments is a Python-based colour syntax highlighter, which can also be connected via Minted to perform colour syntax highlighting for Latex. I wanted a style similar to the Eclipse style:

This was done in Latex with the following:

\usepackage{minted}

...

\begin{document}

\usemintedstyle{eclipse}
\begin{minted}[fontsize=\small]{java}
... [java code here] ...
\end{minted}

I achieved this by creating a new eclipse.py style.

Yes, it is very messy :P. Someone should take the above and clean it up, and install it into Pygments correctly. You can also see what it looks like in a PDF with both Java and XML: partial-code-sample.pdf.