-
-
Save andrawaag/6713422 to your computer and use it in GitHub Desktop.
gpml language definition LaTeX listings package
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
% Language Definition for GPML | |
\usepackage{color} | |
\definecolor{gray}{rgb}{0.4,0.4,0.4} | |
\definecolor{darkblue}{rgb}{0.0,0.0,0.6} | |
\definecolor{cyan}{rgb}{0.0,0.6,0.6} | |
\lstset{ | |
basicstyle=\ttfamily, | |
columns=fullflexible, | |
showstringspaces=false, | |
commentstyle=\color{gray}\upshape | |
} | |
\lstdefinelanguage{GPML} | |
{ | |
morestring=[b][\color{red}]", | |
morestring=[s]{>}{<}, | |
morecomment=[s]{<?}{?>}, | |
% morecomment=[n][\color{red}]{"}{"}}, | |
stringstyle=\color{black}, | |
identifierstyle=\color{darkblue}, | |
keywordstyle=\color{cyan}, | |
morekeywords={xmlns,version,type,TextLabel,GraphId,Type,Interaction, Point, X, Y, RelX, RelY, ArrowHead, | |
Xref, Database, Width, Height, ZOrder, GraphRef, LineThickness, | |
CenterX, CenterY, FontSize, Valign}% list your attributes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment