Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created March 2, 2014 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vermiculus/590ec4d6edfeb415592a to your computer and use it in GitHub Desktop.
Save vermiculus/590ec4d6edfeb415592a to your computer and use it in GitHub Desktop.
\lstset{
rangeprefix=\#\%\ ,
rangesuffix=\ \%\#,
includerangemarker=false,
%gobble=2,% TODO doesn't work for inputlisting
frame=single,
frameround=tttt,
backgroundcolor=\color{blue!5},
rulecolor=\color{blue!50!black}, % TODO background color extends past rounded corner
language=Python,
morekeywords={assert,self},
showstringspaces=false,
showspaces=false,
showtabs=false,
basicstyle=\small\ttfamily,
moredelim=*[s][\lst@stringstyle]{"""}{"""},
moredelim=[s][\lst@commentstyle]{<<}{>>},
}
\renewcommand*\lstlistlistingname{List of Listings}
\lstMakeShortInline[basicstyle=\small\ttfamily]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment