Created
May 30, 2017 08:05
-
-
Save jy95/26ff79ea6c209757975aa5b525e299e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| \usepackage{listings} | |
| \usepackage{color} | |
| \definecolor{lightgray}{rgb}{.9,.9,.9} | |
| \definecolor{darkgray}{rgb}{.4,.4,.4} | |
| \definecolor{purple}{rgb}{0.65, 0.12, 0.82} | |
| % RAML langauge : listings language close to YAML | |
| \newcommand\YAMLcolonstyle{\color{red}\mdseries} | |
| \newcommand\YAMLkeystyle{\color{black}\bfseries} | |
| \newcommand\YAMLvaluestyle{\color{blue}\mdseries} | |
| \lstdefinelanguage{RAML}{ | |
| keywords={true,false,null,y,n}, | |
| keywordstyle=\color{darkgray}\bfseries, | |
| basicstyle=\YAMLkeystyle, % assuming a key comes first | |
| sensitive=false, | |
| comment=[l]{\#}, | |
| morecomment=[s]{/*}{*/}, | |
| commentstyle=\color{purple}\ttfamily, | |
| stringstyle=\YAMLvaluestyle\ttfamily, | |
| moredelim=[l][\color{orange}]{\&}, | |
| moredelim=[l][\color{magenta}]{*}, | |
| moredelim=**[il][\YAMLcolonstyle{:}\YAMLvaluestyle]{:}, % switch to value style at : | |
| morestring=[b]', | |
| morestring=[b]", | |
| literate = {---}{{\ProcessThreeDashes}}3 | |
| {>}{{\textcolor{red}\textgreater}}1 | |
| {|}{{\textcolor{red}\textbar}}1 | |
| {\ -\ }{{\mdseries\ -\ }}3, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment