# Eclipse Pygments Style

Latex / Python

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 . 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.
Categories: Latex | Python | Code Snippets