-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodeXML.tex
28 lines (26 loc) · 857 Bytes
/
CodeXML.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\usepackage{color}
\usepackage{listings}
\lstset{
%language=XML,
backgroundcolor=\color[rgb]{0.94,0.94,0.92},
frame=single,
showstringspaces=false,
breaklines=true,
%columns=fullflexible,
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}
}
\lstdefinelanguage{XML}
{
language=XML,
basicstyle=\ttfamily,
stringstyle=\color{blue},
commentstyle=\color{olive},
numberstyle=\tiny\color{violet},
identifierstyle=\color{blue},
keywordstyle=\color{magenta},
morestring={[b]", [s]{>}{<}, [s]{"}{"}}
morecomment={[s]{<?}{?>}, [s]{?}{?}, [s]{!--}{--}}
moredelim={[s][\color{black}]{>}{<}, [s][\color{red}]{\ }{=}}
% list your attributes here
morekeywords={type, progress, seed, debug, cbgeantvalues, storeallsteps, container, stepcontainer, particle, minenergy, bfield, OutputPath, Histos}
}