Skip to content

Instantly share code, notes, and snippets.

@Micrified
Created March 24, 2020 21:55
Show Gist options
  • Save Micrified/a534695d82dce6d301d863b721e421a0 to your computer and use it in GitHub Desktop.
Save Micrified/a534695d82dce6d301d863b721e421a0 to your computer and use it in GitHub Desktop.
Latex code style file
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.97,0.97,0.97}
\lstdefinestyle{c-style}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\small\ttfamily,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
language=C
}
\lstset{style=c-style}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment