Created
March 12, 2013 16:59
-
-
Save cgddrd/5144727 to your computer and use it in GitHub Desktop.
Syntax highlighting and formatting for source code listings in LaTeX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\lstdefinestyle{customc++}{ | |
belowcaptionskip=1\baselineskip, | |
breaklines=true, | |
frame=L, | |
language=C++, | |
showstringspaces=false, | |
basicstyle=\footnotesize\ttfamily, | |
keywordstyle=\bfseries\color{OliveGreen}, | |
commentstyle=\itshape\color{black}, | |
identifierstyle=\color{blue}, | |
stringstyle=\color{orange}, | |
numbers=left | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. But the custom colour definitions would be useful! :)