Skip to content

Instantly share code, notes, and snippets.

@andrawaag
Created September 26, 2013 12:24
Show Gist options
  • Save andrawaag/6713422 to your computer and use it in GitHub Desktop.
Save andrawaag/6713422 to your computer and use it in GitHub Desktop.
gpml language definition LaTeX listings package
% 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