A custom C++-lexer for Pygments, for extra keyword highlighting when using the package minted in LaTeX. Adds some extra keywords like Atom, System and vec3.
$ git clone https://github.com/FSund/pygments-custom-cpplexer.git
$ cd pygments-custom-cpplexer
$ (sudo) python setup.py install
Verify that the package installed correctly by looking for the lexer "mdcpp" in the output of
$ pygmentize -L lexers
Just use the mdcpp "language". In LaTeX this means something like this
\begin{minted}{mdcpp}
vec3 position(0.0, 0.0, 0.0);
Atom *atom = new Atom(position);
\end{minted}
See the minted package at https://github.com/gpoore/minted for more information.