Skip to content

Instantly share code, notes, and snippets.

@TheZoq2
Created November 3, 2015 20:16
Show Gist options
  • Save TheZoq2/a906e647491b206db193 to your computer and use it in GitHub Desktop.
Save TheZoq2/a906e647491b206db193 to your computer and use it in GitHub Desktop.
\usepackage{listings} %Add code sections
\usepackage{color}
\usepackage{textcomp}
\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\lstset{
backgroundcolor=\color{lbcolor},
tabsize=4,
rulecolor=,
basicstyle=\scriptsize,
upquote=true,
aboveskip={1.5\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
breaklines=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment