Created
July 1, 2018 01:39
-
-
Save pezcode/d8fd7bb3d0280a3723248ab15e3cea27 to your computer and use it in GitHub Desktop.
Visual Studio 2017 C++ color scheme for the LaTeX listing package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% VS2017 C++ color scheme | |
\definecolor{clr-background}{RGB}{255,255,255} | |
\definecolor{clr-text}{RGB}{0,0,0} | |
\definecolor{clr-string}{RGB}{163,21,21} | |
\definecolor{clr-namespace}{RGB}{0,0,0} | |
\definecolor{clr-preprocessor}{RGB}{128,128,128} | |
\definecolor{clr-keyword}{RGB}{0,0,255} | |
\definecolor{clr-type}{RGB}{43,145,175} | |
\definecolor{clr-variable}{RGB}{0,0,0} | |
\definecolor{clr-constant}{RGB}{111,0,138} % macro color | |
\definecolor{clr-comment}{RGB}{0,128,0} | |
\lstdefinestyle{VS2017}{ | |
backgroundcolor=\color{clr-background}, | |
basicstyle=\color{clr-text}, % any text | |
stringstyle=\color{clr-string}, | |
identifierstyle=\color{clr-variable}, % just about anything that isn't a directive, comment, string or known type | |
commentstyle=\color{clr-comment}, | |
directivestyle=\color{clr-preprocessor}, % preprocessor commands | |
% listings doesn't differentiate between types and keywords (e.g. int vs return) | |
% use the user types color | |
keywordstyle=\color{clr-type}, | |
keywordstyle={[2]\color{clr-constant}}, % you'll need to define these or use a custom language | |
tabsize=4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment