Skip to content

Instantly share code, notes, and snippets.

@KpwnZ
Created May 17, 2021 01:36
Show Gist options
  • Save KpwnZ/1110cf5bd80c3bf7b8357fdbae10d103 to your computer and use it in GitHub Desktop.
Save KpwnZ/1110cf5bd80c3bf7b8357fdbae10d103 to your computer and use it in GitHub Desktop.
LaTeX OneLight highlight
\definecolor{background}{RGB}{250, 250, 250}
\definecolor{string}{RGB}{89, 135, 75}
\definecolor{comment}{RGB}{160, 161, 166}
\definecolor{keycolor}{RGB}{153, 54, 159}
\definecolor{normal}{RGB}{55, 57, 65}
\definecolor{identifier}{RGB}{166, 226, 46}
\definecolor{function}{RGB}{75, 122, 235}
\setlength{\parindent}{1em}
\lstset{
language=C++,
numbersep=15pt,
numberstyle=\tiny\color{comment}\ttfamily,
breaklines,
numbers=left,
xleftmargin=3em,
title=\lstname,
basicstyle=\small\linespread{1}\color{normal}\ttfamily,
keywordstyle=\color{keycolor}\ttfamily, %
stringstyle=\color{string}\ttfamily,
commentstyle=\color{comment}\ttfamily, %
emph={do_fork},
emphstyle=\color{function}\ttfamily,
tabsize=4,
% backgroundcolor=\color{background}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment