forked from mickmcq/iste422book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listingssettings.tex
executable file
·108 lines (108 loc) · 2.64 KB
/
listingssettings.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
% lists
\usepackage{multicol}
%listings
\usepackage{listings}
%\lstdefinelanguage{html}{%
% morekeywords={a,href,tag,attribute}%
%}
\input{listings-lstlang4.tex}
\lstdefinelanguage{JavaScript}{ keywords={break, case, catch, continue, debugger, default, delete, do, else, finally, for, forEach, function, if, in, instanceof, listen, new, run, require, return, send, set, switch, then, this, throw, try, typeof, use, var, void, while, with},
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]",
sensitive=true
}
\lstdefinelanguage{Cypher} {
alsoletter={<, :, >, /},
morekeywords={SET, IN, WITH, MATCH, MERGE, DETACH, WHERE, RETURN, CREATE, DELETE,
set, in, with, match, merge, detach, where, return, create, delete},
morestring=[b]"
}
\lstdefinelanguage{email}{%
morekeywords={Delivered,
To,
Received,
Authentication,
Results,
X,
VirtualServer,
VirtualServerGroup,
Return,
Path}%
}
\lstdefinelanguage{generic}{%
classoffset=0,
morekeywords={%
pdf,
en3%
},
keywordstyle=\color{commentcolor},
classoffset=1,
morekeywords={%
en3%
},
keywordstyle=\color{keywordcolor}
}
\lstdefinelanguage{ifconfig}{%
classoffset=0,
morekeywords={%
p2p0,
en3%
},
keywordstyle=\color{commentcolor},
classoffset=1,
morekeywords={%
broadcast,
ether,
flags,
inet,
inet6,
media,
nd6,
netmask,
options,
status%
},
keywordstyle=\color{keywordcolor}
}
\lstdefinestyle{python}{language=Python,basicstyle=\ttfamily\normalsize,columns=fixed}
\lstdefinestyle{cypher}{%
language=Cypher,
basicstyle=\ttfamily\small,
columns=fixed
}
\lstdefinestyle{perl}{%
language=Perl,
basicstyle=\ttfamily\small,
columns=fixed
}
\lstdefinestyle{scriptxml}{language=xml,basicstyle=\ttfamily\scriptsize,columns=fixed}
\lstdefinestyle{footxml}{language=xml,basicstyle=\ttfamily\footnotesize,columns=fixed}
\lstdefinestyle{smallxml}{language=xml,basicstyle=\ttfamily\small,columns=fixed}
\lstdefinestyle{mailheaders}{language=email,basicstyle=\ttfamily\tiny,columns=fixed}
\lstdefinestyle{netconfig}{%
language=ifconfig,
basicstyle=\ttfamily\scriptsize,
columns=fixed%
}
\usepackage{textcomp}
\usepackage{upquote}
\lstset{%
language=SQL,
%language=html,
%literate={"}{\textquotedbl}1,
basicstyle=\ttfamily\small,
upquote=true,
columns=fixed,
keywordstyle=\bfseries\color{keywordcolor},
identifierstyle=\color{idcolor},
stringstyle=\color{stringcolor},
commentstyle=\color{commentcolor},
breaklines=true,
breakatwhitespace=true,
tabsize=10,
emph={tag,attribute},
emphstyle=\color{emphcolor},
showstringspaces=false%
}