Debian Codegraph @

test/syntax/source/docbook.docbook

raw
1 <article xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 id="docbook">
5
6 <title>Syntax Highlighting</title>
7
8 <section id="embedded">
9 <title>Embedded Markup</title>
10 <programlisting language="c">
11 #include &lt;stdlib.h>
12 int main(char** argv) {
13 // This is a <link xlink:href="#">link</link>
14 /* This is <replaceable>replaceable text</replaceable> */
15 int i = 12;
16 printf("hello %s\n", world);
17 }
18 </programlisting>
19 </section>
20
21 <section id="actionscript">
22 <title>ActionScript</title>
23 <example>
24 <title><code>language="actionscript"</code></title>
25 <programlisting language="actionscript"><xi:include parse="text" href="code/actionscript"/></programlisting>
26 </example>
27 </section>
28
29 <section id="apache">
30 <title>Apache Config</title>
31 <example>
32 <title><code>language="apache"</code></title>
33 <programlisting language="apache"><xi:include parse="text" href="code/apache"/></programlisting>
34 </example>
35 </section>
36
37 <section id="asciidoc">
38 <title>AsciiDoc</title>
39 <example>
40 <title><code>language="asciidoc"</code></title>
41 <programlisting language="asciidoc"><xi:include parse="text" href="code/asciidoc"/></programlisting>
42 </example>
43 <example>
44 <title><code>language="adoc"</code></title>
45 <programlisting language="adoc"><xi:include parse="text" href="code/asciidoc"/></programlisting>
46 </example>
47 </section>
48
49 <section id="awk">
50 <title>Awk</title>
51 <example>
52 <title><code>language="awk"</code></title>
53 <programlisting language="awk"><xi:include parse="text" href="code/awk"/></programlisting>
54 </example>
55 </section>
56
57 <section id="bash">
58 <title>Bash</title>
59 <example>
60 <title><code>language="sh"</code></title>
61 <programlisting language="sh"><xi:include parse="text" href="code/bash"/></programlisting>
62 </example>
63 <example>
64 <title><code>language="bash"</code></title>
65 <programlisting language="bash"><xi:include parse="text" href="code/bash"/></programlisting>
66 </example>
67 <example>
68 <title><code>language="csh"</code></title>
69 <programlisting language="csh"><xi:include parse="text" href="code/bash"/></programlisting>
70 </example>
71 <example>
72 <title><code>language="bourne"</code></title>
73 <programlisting language="bourne"><xi:include parse="text" href="code/bash"/></programlisting>
74 </example>
75 </section>
76
77 <section id="c">
78 <title>C</title>
79 <example>
80 <title><code>language="c"</code></title>
81 <programlisting language="c"><xi:include parse="text" href="code/cpp"/></programlisting>
82 </example>
83 </section>
84
85 <section id="csharp">
86 <title>C#</title>
87 <example>
88 <title><code>language="cs"</code></title>
89 <programlisting language="cs"><xi:include parse="text" href="code/csharp"/></programlisting>
90 </example>
91 <example>
92 <title><code>language="csharp"</code></title>
93 <programlisting language="csharp"><xi:include parse="text" href="code/csharp"/></programlisting>
94 </example>
95 </section>
96
97 <section id="cpp">
98 <title>C++</title>
99 <example>
100 <title><code>language="cpp"</code></title>
101 <programlisting language="cpp"><xi:include parse="text" href="code/cpp"/></programlisting>
102 </example>
103 <example>
104 <title><code>language="c++"</code></title>
105 <programlisting language="c++"><xi:include parse="text" href="code/cpp"/></programlisting>
106 </example>
107 </section>
108
109 <section id="clojure">
110 <title>Clojure</title>
111 <example>
112 <title><code>language="clojure"</code></title>
113 <programlisting language="clojure"><xi:include parse="text" href="code/clojure"/></programlisting>
114 </example>
115 <example>
116 <title><code>language="clj"</code></title>
117 <programlisting language="clj"><xi:include parse="text" href="code/clojure"/></programlisting>
118 </example>
119 </section>
120
121 <section id="cmake">
122 <title>CMake</title>
123 <example>
124 <title><code>language="cmake"</code></title>
125 <programlisting language="cmake"><xi:include parse="text" href="code/cmake"/></programlisting>
126 </example>
127 </section>
128
129 <section id="css">
130 <title>CSS</title>
131 <example>
132 <title><code>language="css"</code></title>
133 <programlisting language="css"><xi:include parse="text" href="code/css"/></programlisting>
134 </example>
135 <example>
136 <title><code>language="css21"</code></title>
137 <programlisting language="css21"><xi:include parse="text" href="code/css"/></programlisting>
138 </example>
139 </section>
140
141 <section id="d">
142 <title>D</title>
143 <example>
144 <title><code>language="d"</code></title>
145 <programlisting language="d"><xi:include parse="text" href="code/d"/></programlisting>
146 </example>
147 </section>
148
149 <section id="diff">
150 <title>Diff</title>
151 <example>
152 <title><code>language="diff"</code></title>
153 <programlisting language="diff"><xi:include parse="text" href="code/diff"/></programlisting>
154 </example>
155 <example>
156 <title><code>language="patch"</code></title>
157 <programlisting language="patch"><xi:include parse="text" href="code/diff"/></programlisting>
158 </example>
159 </section>
160
161 <section id="django">
162 <title>Django</title>
163 <example>
164 <title><code>language="django"</code></title>
165 <programlisting language="django"><xi:include parse="text" href="code/django"/></programlisting>
166 </example>
167 </section>
168
169 <section id="dockerfile">
170 <title>Dockerfile</title>
171 <example>
172 <title><code>language="dockerfile"</code></title>
173 <programlisting language="dockerfile"><xi:include parse="text" href="code/dockerfile"/></programlisting>
174 </example>
175 </section>
176
177 <section id="dos">
178 <title>DOS Batch</title>
179 <example>
180 <title><code>language="dos"</code></title>
181 <programlisting language="dos"><xi:include parse="text" href="code/dos"/></programlisting>
182 </example>
183 </section>
184
185 <section id="ducktype">
186 <title>Ducktype</title>
187 <example>
188 <title><code>language="ducktype"</code></title>
189 <programlisting language="ducktype"><xi:include parse="text" href="code/ducktype"/></programlisting>
190 </example>
191 </section>
192
193 <section id="erb">
194 <title>Embedded Ruby</title>
195 <example>
196 <title><code>language="erb"</code></title>
197 <programlisting language="erb"><xi:include parse="text" href="code/erb"/></programlisting>
198 </example>
199 </section>
200
201 <section id="fsharp">
202 <title>F#</title>
203 <example>
204 <title><code>language="fsharp"</code></title>
205 <programlisting language="fsharp"><xi:include parse="text" href="code/fsharp"/></programlisting>
206 </example>
207 </section>
208
209 <section id="go">
210 <title>Go</title>
211 <example>
212 <title><code>language="go"</code></title>
213 <programlisting language="go"><xi:include parse="text" href="code/go"/></programlisting>
214 </example>
215 </section>
216
217 <section id="haml">
218 <title>Haml</title>
219 <example>
220 <title><code>language="haml"</code></title>
221 <programlisting language="haml"><xi:include parse="text" href="code/haml"/></programlisting>
222 </example>
223 </section>
224
225 <section id="haskell">
226 <title>Haskell</title>
227 <example>
228 <title><code>language="haskell"</code></title>
229 <programlisting language="haskell"><xi:include parse="text" href="code/haskell"/></programlisting>
230 </example>
231 <example>
232 <title><code>language="hs"</code></title>
233 <programlisting language="hs"><xi:include parse="text" href="code/haskell"/></programlisting>
234 </example>
235 </section>
236
237 <section id="html">
238 <title>HTML</title>
239 <example>
240 <title><code>language="html"</code></title>
241 <programlisting language="html"><xi:include parse="text" href="code/xml"/></programlisting>
242 </example>
243 <example>
244 <title><code>language="xhtml"</code></title>
245 <programlisting language="xhtml"><xi:include parse="text" href="code/xml"/></programlisting>
246 </example>
247 </section>
248
249 <section id="http">
250 <title>HTTP</title>
251 <example>
252 <title><code>language="http"</code></title>
253 <programlisting language="http"><xi:include parse="text" href="code/http"/></programlisting>
254 </example>
255 </section>
256
257 <section id="ini">
258 <title>INI</title>
259 <example>
260 <title><code>language="ini"</code></title>
261 <programlisting language="ini"><xi:include parse="text" href="code/ini"/></programlisting>
262 </example>
263 </section>
264
265 <section id="java">
266 <title>Java</title>
267 <example>
268 <title><code>language="java"</code></title>
269 <programlisting language="java"><xi:include parse="text" href="code/java"/></programlisting>
270 </example>
271 </section>
272
273 <section id="json">
274 <title>JSON</title>
275 <example>
276 <title><code>language="json"</code></title>
277 <programlisting language="json"><xi:include parse="text" href="code/json"/></programlisting>
278 </example>
279 </section>
280
281 <section id="javascript">
282 <title>JavaScript</title>
283 <example>
284 <title><code>language="javascript"</code></title>
285 <programlisting language="javascript"><xi:include parse="text" href="code/javascript"/></programlisting>
286 </example>
287 <example>
288 <title><code>language="js"</code></title>
289 <programlisting language="js"><xi:include parse="text" href="code/javascript"/></programlisting>
290 </example>
291 </section>
292
293 <section id="LISP">
294 <title>LISP</title>
295 <example>
296 <title><code>language="lisp"</code></title>
297 <programlisting language="lisp"><xi:include parse="text" href="code/lisp"/></programlisting>
298 </example>
299 <example>
300 <title><code>language="cl"</code></title>
301 <programlisting language="cl"><xi:include parse="text" href="code/lisp"/></programlisting>
302 </example>
303 <example>
304 <title><code>language="el"</code></title>
305 <programlisting language="el"><xi:include parse="text" href="code/lisp"/></programlisting>
306 </example>
307 <example>
308 <title><code>language="lsp"</code></title>
309 <programlisting language="lsp"><xi:include parse="text" href="code/lisp"/></programlisting>
310 </example>
311 </section>
312
313 <section id="lua">
314 <title>Lua</title>
315 <example>
316 <title><code>language="lua"</code></title>
317 <programlisting language="lua"><xi:include parse="text" href="code/lua"/></programlisting>
318 </example>
319 </section>
320
321 <section id="makefile">
322 <title>Makefile</title>
323 <example>
324 <title><code>language="makefile"</code></title>
325 <programlisting language="makefile"><xi:include parse="text" href="code/makefile"/></programlisting>
326 </example>
327 <example>
328 <title><code>language="make"</code></title>
329 <programlisting language="make"><xi:include parse="text" href="code/makefile"/></programlisting>
330 </example>
331 </section>
332
333 <section id="markdown">
334 <title>Markdown</title>
335 <example>
336 <title><code>language="markdown"</code></title>
337 <programlisting language="markdown"><xi:include parse="text" href="code/markdown"/></programlisting>
338 </example>
339 <example>
340 <title><code>language="md"</code></title>
341 <programlisting language="md"><xi:include parse="text" href="code/markdown"/></programlisting>
342 </example>
343 </section>
344
345 <section id="matlab">
346 <title>MATLAB/Octave</title>
347 <example>
348 <title><code>language="matlab"</code></title>
349 <programlisting language="matlab"><xi:include parse="text" href="code/matlab"/></programlisting>
350 </example>
351 <example>
352 <title><code>language="octave"</code></title>
353 <programlisting language="octave"><xi:include parse="text" href="code/matlab"/></programlisting>
354 </example>
355 </section>
356
357 <section id="nginx">
358 <title>Nginx Config</title>
359 <example>
360 <title><code>language="nginx"</code></title>
361 <programlisting language="nginx"><xi:include parse="text" href="code/nginx"/></programlisting>
362 </example>
363 </section>
364
365 <section id="objectivec">
366 <title>Objective-C</title>
367 <example>
368 <title><code>language="objc"</code></title>
369 <programlisting language="objc"><xi:include parse="text" href="code/objectivec"/></programlisting>
370 </example>
371 <example>
372 <title><code>language="m"</code></title>
373 <programlisting language="m"><xi:include parse="text" href="code/objectivec"/></programlisting>
374 </example>
375 </section>
376
377 <section id="perl">
378 <title>Perl</title>
379 <example>
380 <title><code>language="perl"</code></title>
381 <programlisting language="perl"><xi:include parse="text" href="code/perl"/></programlisting>
382 </example>
383 <example>
384 <title><code>language="pl"</code></title>
385 <programlisting language="pl"><xi:include parse="text" href="code/perl"/></programlisting>
386 </example>
387 <example>
388 <title><code>language="pm"</code></title>
389 <programlisting language="pm"><xi:include parse="text" href="code/perl"/></programlisting>
390 </example>
391 </section>
392
393 <section id="php">
394 <title>PHP</title>
395 <example>
396 <title><code>language="php"</code></title>
397 <programlisting language="php"><xi:include parse="text" href="code/php"/></programlisting>
398 </example>
399 </section>
400
401 <section id="python">
402 <title>Python</title>
403 <example>
404 <title><code>language="python"</code></title>
405 <programlisting language="python"><xi:include parse="text" href="code/python"/></programlisting>
406 </example>
407 <example>
408 <title><code>language="py"</code></title>
409 <programlisting language="py"><xi:include parse="text" href="code/python"/></programlisting>
410 </example>
411 </section>
412
413 <section id="r">
414 <title>R/S</title>
415 <example>
416 <title><code>language="r"</code></title>
417 <programlisting language="r"><xi:include parse="text" href="code/r"/></programlisting>
418 </example>
419 <example>
420 <title><code>language="s"</code></title>
421 <programlisting language="s"><xi:include parse="text" href="code/r"/></programlisting>
422 </example>
423 </section>
424
425 <section id="ruby">
426 <title>Ruby</title>
427 <example>
428 <title><code>language="ruby"</code></title>
429 <programlisting language="ruby"><xi:include parse="text" href="code/ruby"/></programlisting>
430 </example>
431 <example>
432 <title><code>language="rb"</code></title>
433 <programlisting language="rb"><xi:include parse="text" href="code/ruby"/></programlisting>
434 </example>
435 </section>
436
437 <section id="rust">
438 <title>Rust</title>
439 <example>
440 <title><code>language="rust"</code></title>
441 <programlisting language="rust"><xi:include parse="text" href="code/rust"/></programlisting>
442 </example>
443 </section>
444
445 <section id="scala">
446 <title>Scala</title>
447 <example>
448 <title><code>language="scala"</code></title>
449 <programlisting language="scala"><xi:include parse="text" href="code/scala"/></programlisting>
450 </example>
451 </section>
452
453 <section id="scheme">
454 <title>Scheme</title>
455 <example>
456 <title><code>language="scheme"</code></title>
457 <programlisting language="scheme"><xi:include parse="text" href="code/scheme"/></programlisting>
458 </example>
459 <example>
460 <title><code>language="scm"</code></title>
461 <programlisting language="scm"><xi:include parse="text" href="code/scheme"/></programlisting>
462 </example>
463 </section>
464
465 <section id="shell">
466 <title>Shell</title>
467 <example>
468 <title><code>language="shell"</code></title>
469 <screen language="shell"><xi:include parse="text" href="code/shell"/></screen>
470 </example>
471 </section>
472
473 <section id="smalltalk">
474 <title>Smalltalk</title>
475 <example>
476 <title><code>language="smalltalk"</code></title>
477 <programlisting language="smalltalk"><xi:include parse="text" href="code/smalltalk"/></programlisting>
478 </example>
479 </section>
480
481 <section id="sml">
482 <title>SML</title>
483 <example>
484 <title><code>language="sml"</code></title>
485 <programlisting language="sml"><xi:include parse="text" href="code/sml"/></programlisting>
486 </example>
487 </section>
488
489 <section id="sql">
490 <title>SQL</title>
491 <example>
492 <title><code>language="sql"</code></title>
493 <programlisting language="sql"><xi:include parse="text" href="code/sql"/></programlisting>
494 </example>
495 <example>
496 <title><code>language="sql92"</code></title>
497 <programlisting language="sql92"><xi:include parse="text" href="code/sql"/></programlisting>
498 </example>
499 <example>
500 <title><code>language="sql1999"</code></title>
501 <programlisting language="sql1999"><xi:include parse="text" href="code/sql"/></programlisting>
502 </example>
503 <example>
504 <title><code>language="sql2003"</code></title>
505 <programlisting language="sql2003"><xi:include parse="text" href="code/sql"/></programlisting>
506 </example>
507 </section>
508
509 <section id="tcl">
510 <title>TCL</title>
511 <example>
512 <title><code>language="tcl"</code></title>
513 <programlisting language="tcl"><xi:include parse="text" href="code/tcl"/></programlisting>
514 </example>
515 </section>
516
517 <section id="tex">
518 <title>TeX</title>
519 <example>
520 <title><code>language="tex"</code></title>
521 <programlisting language="tex"><xi:include parse="text" href="code/latex"/></programlisting>
522 </example>
523 <example>
524 <title><code>language="latex"</code></title>
525 <programlisting language="latex"><xi:include parse="text" href="code/latex"/></programlisting>
526 </example>
527 </section>
528
529 <section id="vala">
530 <title>Vala</title>
531 <example>
532 <title><code>language="vala"</code></title>
533 <programlisting language="vala"><xi:include parse="text" href="code/vala"/></programlisting>
534 </example>
535 </section>
536
537 <section id="xml">
538 <title>XML</title>
539 <example>
540 <title><code>language="xml"</code></title>
541 <programlisting language="xml"><xi:include parse="text" href="code/xml"/></programlisting>
542 </example>
543 <example>
544 <title><code>language="myxml"</code></title>
545 <programlisting language="myxml"><xi:include parse="text" href="code/xml"/></programlisting>
546 </example>
547 </section>
548
549 <section id="xquery">
550 <title>XQuery</title>
551 <example>
552 <title><code>language="xquery"</code></title>
553 <programlisting language="xquery"><xi:include parse="text" href="code/xquery"/></programlisting>
554 </example>
555 <example>
556 <title><code>language="xq"</code></title>
557 <programlisting language="xq"><xi:include parse="text" href="code/xquery"/></programlisting>
558 </example>
559 </section>
560
561 <section id="yaml">
562 <title>YAML</title>
563 <example>
564 <title><code>language="yaml"</code></title>
565 <programlisting language="yaml"><xi:include parse="text" href="code/yaml"/></programlisting>
566 </example>
567 </section>
568
569 </article>