Skip to content

Instantly share code, notes, and snippets.

@cgddrd
Created March 12, 2013 16:59
Show Gist options
  • Save cgddrd/5144727 to your computer and use it in GitHub Desktop.
Save cgddrd/5144727 to your computer and use it in GitHub Desktop.
Syntax highlighting and formatting for source code listings in LaTeX.
\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
}
@samueljackson92
Copy link

Nice. But the custom colour definitions would be useful! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment