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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328 | /*************************************************************************************************/
/*************************************************************************************************/
/* CSS-Colors that interpret the output of http://pygments.org Syntax-HiLiter */
/*************************************************************************************************/
/*************************************************************************************************/
/*
SPAN.hll → Highlight line (background)
SPAN.c → Comment
SPAN.c1 → Comment.Single
SPAN.ch → Comment.Hashbang
SPAN.cm → Comment.Multiline
SPAN.cp → Comment.Preproc
SPAN.cs → Comment.Special
SPAN.err → Error
SPAN.k → Keyword
SPAN.kc → Keyword.Constant
SPAN.kd → Keyword.Declaration
SPAN.kn → Keyword.Namespace
SPAN.kp → Keyword.Pseudo
SPAN.kr → Keyword.Reserved
SPAN.kt → Keyword.Type
SPAN.n → Name
SPAN.na → Name.Attribute
SPAN.nb → Name.Builtin
SPAN.bp → Name.Builtin.Pseudo
SPAN.nc → Name.Class
SPAN.no → Name.Constant
SPAN.nd → Name.Decorator
SPAN.ni → Name.Entity
SPAN.ne → Name.Exception
SPAN.nf → Name.Function
SPAN.nl → Name.Label
SPAN.nn → Name.Namespace
SPAN.nv → Name.Variable
SPAN.nx → Name.Other
SPAN.o → Operator
SPAN.ow → Operator.Word
SPAN.l → Literal
SPAN.ld → Literal.Date
SPAN.m → Literal.Number
SPAN.mb → Literal.Number.Bin
SPAN.mf → Literal.Number.Float
SPAN.mh → Literal.Number.Hex
SPAN.mi → Literal.Number.Integer
SPAN.mo → Literal.Number.Oct
SPAN.s → Literal.String
SPAN.sa → String.Affix
SPAN.sb → String.Backtick
SPAN.sc → String.Char
SPAN.dl → String.Delimiter
SPAN.sd → String.Doc
SPAN.s2 → String.Double
SPAN.se → String.Escape
SPAN.sh → String.Heredoc
SPAN.si → String.Interpol
SPAN.sr → String.Regex
SPAN.s1 → String.Single
SPAN.ss → String.Symbol
SPAN.p → Punctuation
SPAN.t → Text
SPAN.w → Text.Whitespace
*/
:root
{
--H1-code-comment: darkgray;
--H1-code-error: red;
--H1-code-keyword1: tomato;
--H1-code-keyword2: yellow;
--H1-code-name1: white;
--H1-code-name2: navajowhite;
--H1-code-operator: springgreen;
--H1-code-number: orange;
--H1-code-string: royalblue;
--H1-code-muted: gray;
/* H2 — Inline Source */
--H2-code-comment: darkgray;
--H2-code-error: red;
--H2-code-keyword1: yellow;
--H2-code-keyword2: turquoise;
--H2-code-name1: white;
--H2-code-name2: salmon;
--H2-code-operator: royalblue;
--H2-code-number: gold;
--H2-code-string: orangered;
--H2-code-muted: silver;
}
/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
/* H1-xxx ==> Code Snippets */
/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
/* */
/* ------------------------------------ INLINE SNIPPETS ------------------------------------------ */
/* VIM-inspired syntax highlighting for short inline code */
/* Used in method snippets, examples, fields inside JavaDoc HTML */
/* ----------------------------------------------------------------------------------------------- */
SPAN.H1-hll, /* Highlight line (background) */
SPAN.H1-c, /* Comment */
SPAN.H1-c1, /* Comment.Single */
SPAN.H1-ch, /* Comment.Hashbang */
SPAN.H1-cm, /* Comment.Multiline */
SPAN.H1-cp, /* Comment.Preproc */
SPAN.H1-cs /* Comment.Special */
{
color: var(--H1-code-comment);
font-style: italic;
font-weight: bold;
}
SPAN.err /* Error */
{
color: var(--H1-code-error);
font-weight: bold;
text-decoration: underline;
}
SPAN.H1-k, /* Keyword */
SPAN.H1-kp, /* Keyword.Pseudo */
SPAN.H1-kr, /* Keyword.Reserved */
SPAN.H1-kt /* Keyword.Type */
{
color: var(--H1-code-keyword1);
font-weight: bold;
}
SPAN.H1-kc, /* Keyword.Constant */
SPAN.H1-kd, /* Keyword.Declaration */
SPAN.H1-kn /* Keyword.Namespace */
{
color: var(--H1-code-keyword2);
font-weight: bold;
}
SPAN.H1-n, /* Name */
SPAN.H1-na, /* Name.Attribute */
SPAN.H1-nb, /* Name.Builtin */
SPAN.H1-bp, /* Name.Builtin.Pseudo */
SPAN.H1-nc, /* Name.Class */
SPAN.H1-nd, /* Name.Decorator */
SPAN.H1-ni, /* Name.Entity */
SPAN.H1-ne, /* Name.Exception */
SPAN.H1-nf /* Name.Function */
{
color: var(--H1-code-name1);
font-weight: normal;
}
SPAN.H1-nv, /* Name.Variable */
SPAN.H1-no, /* Name.Constant */
SPAN.H1-nl, /* Name.Label */
SPAN.H1-nn, /* Name.Namespace */
SPAN.H1-nx /* Name.Other */
{
color: var(--H1-code-name2);
font-weight: normal;
}
SPAN.H1-o, /* Operator */
SPAN.H1-ow /* Operator.Word */
{
color: var(--H1-code-operator);
font-weight: bold;
}
SPAN.H1-l, /* Literal */
SPAN.H1-ld, /* Literal.Date */
SPAN.H1-m, /* Literal.Number */
SPAN.H1-mb, /* Literal.Number.Bin */
SPAN.H1-mf, /* Literal.Number.Float */
SPAN.H1-mh, /* Literal.Number.Hex */
SPAN.H1-mi, /* Literal.Number.Integer */
SPAN.H1-mo /* Literal.Number.Oct */
{
color: var(--H1-code-number);
font-weight: bold;
}
SPAN.H1-s, /* Literal.String */
SPAN.H1-sa, /* String.Affix */
SPAN.H1-sb, /* String.Backtick */
SPAN.H1-sc, /* String.Char */
SPAN.H1-dl, /* String.Delimiter */
SPAN.H1-sd, /* String.Doc */
SPAN.H1-s2, /* String.Double */
SPAN.H1-se, /* String.Escape */
SPAN.H1-sh, /* String.Heredoc */
SPAN.H1-si, /* String.Interpol */
SPAN.H1-sr, /* String.Regex */
SPAN.H1-s1, /* String.Single */
SPAN.H1-ss /* String.Symbol */
{
color: var(--H1-code-string);
font-weight: bolder;
}
SPAN.H1-p, /* Punctuation */
SPAN.H1-t, /* Text */
SPAN.H1-w /* Text.Whitespace */
{ color: var(--H1-code-muted); }
/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
/* H2-xxx ==> Full Page HiLited Source */
/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
/* */
/* ------------------------------------ FULL PAGE SOURCE ----------------------------------------- */
/* Native-inspired syntax highlighting for entire `.java` file */
/* Displayed when clicking "View HiLited Source" button on a class/interface/etc. */
/* ----------------------------------------------------------------------------------------------- */
SPAN.H2-hll, /* Highlight line (background) */
SPAN.H2-c, /* Comment */
SPAN.H2-c1, /* Comment.Single */
SPAN.H2-ch, /* Comment.Hashbang */
SPAN.H2-cm, /* Comment.Multiline */
SPAN.H2-cp, /* Comment.Preproc */
SPAN.H2-cs /* Comment.Special */
{
color: var(--H2-code-comment);
font-style: italic;
font-weight: bold;
}
SPAN.err /* Error */
{
color: var(--H2-code-error);
font-weight: bold;
text-decoration: underline;
}
SPAN.H2-k, /* Keyword */
SPAN.H2-kp, /* Keyword.Pseudo */
SPAN.H2-kr, /* Keyword.Reserved */
SPAN.H2-kt /* Keyword.Type */
{
color: var(--H2-code-keyword1);
font-weight: bold;
}
SPAN.H2-kc, /* Keyword.Constant */
SPAN.H2-kd, /* Keyword.Declaration */
SPAN.H2-kn /* Keyword.Namespace */
{
color: var(--H2-code-keyword2);
font-weight: bold;
}
SPAN.H2-n, /* Name */
SPAN.H2-na, /* Name.Attribute */
SPAN.H2-nb, /* Name.Builtin */
SPAN.H2-bp, /* Name.Builtin.Pseudo */
SPAN.H2-nc, /* Name.Class */
SPAN.H2-nd, /* Name.Decorator */
SPAN.H2-ni, /* Name.Entity */
SPAN.H2-ne, /* Name.Exception */
SPAN.H2-nf /* Name.Function */
{
color: var(--H2-code-name1);
font-weight: normal;
}
SPAN.H2-nv, /* Name.Variable */
SPAN.H2-no, /* Name.Constant */
SPAN.H2-nl, /* Name.Label */
SPAN.H2-nn, /* Name.Namespace */
SPAN.H2-nx /* Name.Other */
{
color: var(--H2-code-name2);
font-weight: normal;
}
SPAN.H2-o, /* Operator */
SPAN.H2-ow /* Operator.Word */
{
color: var(--H2-code-operator);
font-weight: bold;
}
SPAN.H2-l, /* Literal */
SPAN.H2-ld, /* Literal.Date */
SPAN.H2-m, /* Literal.Number */
SPAN.H2-mb, /* Literal.Number.Bin */
SPAN.H2-mf, /* Literal.Number.Float */
SPAN.H2-mh, /* Literal.Number.Hex */
SPAN.H2-mi, /* Literal.Number.Integer */
SPAN.H2-mo /* Literal.Number.Oct */
{
color: var(--H2-code-number);
font-weight: bold;
}
SPAN.H2-s, /* Literal.String */
SPAN.H2-sa, /* String.Affix */
SPAN.H2-sb, /* String.Backtick */
SPAN.H2-sc, /* String.Char */
SPAN.H2-dl, /* String.Delimiter */
SPAN.H2-sd, /* String.Doc */
SPAN.H2-s2, /* String.Double */
SPAN.H2-se, /* String.Escape */
SPAN.H2-sh, /* String.Heredoc */
SPAN.H2-si, /* String.Interpol */
SPAN.H2-sr, /* String.Regex */
SPAN.H2-s1, /* String.Single */
SPAN.H2-ss /* String.Symbol */
{
color: var(--H2-code-string);
font-weight: bolder;
}
SPAN.H2-p, /* Punctuation */
SPAN.H2-t, /* Text */
SPAN.H2-w /* Text.Whitespace */
{ color: var(--H2-code-muted); }
|