Debian Codegraph @

autotests/html/highlight.pike.html

raw
1 <!DOCTYPE html>
2 <html><head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4 <title>highlight.pike</title>
5 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Pike) - Theme (Breeze Light)"/>
6 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
7 <span style="color:#898887;">#! /bin/env pike</span>
8
9 <span style="color:#898887;">/* This file is a syntax highlight test for Kate.</span>
10 <span style="color:#898887;"> * </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">FIXME</span><span style="color:#898887;">: Improve it to contain more (and more unusual) syntax examples.</span>
11 <span style="color:#898887;"> */</span>
12
13
14 <span style="color:#006e28;">#define PIKE_ON_THE_WEB </span><span style="color:#898887;">/* Is this address correct? */</span><span style="color:#006e28;"> </span><span style="color:#bf0303;">&quot;http://pike.ida.liu.se/&quot;</span>
15
16
17 <span style="color:#0057ae;">int</span> main(<span style="color:#0057ae;">int</span> argc, <span style="color:#0057ae;">array</span>(<span style="color:#0057ae;">string</span>) args)
18 {
19 <span style="color:#898887;">// Write funny things with Pike :)</span>
20 write(<span style="color:#644a9b;">`+</span>(<span style="color:#bf0303;">&quot;Command line arguments (%d of them): &quot;</span>, @map(args, <span style="color:#644a9b;">`+</span>, <span style="color:#bf0303;">&quot; &quot;</span>)) + <span style="color:#bf0303;">&quot;</span><span style="color:#924c9d;">\n</span><span style="color:#bf0303;">&quot;</span>, argc);
21
22 write(<span style="color:#bf0303;">&quot;</span><span style="color:#924c9d;">\n</span><span style="color:#bf0303;">Visit Pike site at %s</span><span style="color:#924c9d;">\n\n</span><span style="color:#bf0303;">&quot;</span>, PIKE_ON_THE_WEB);
23
24 <span style="font-weight:bold;">for</span> (<span style="color:#0057ae;">int</span> i = <span style="color:#b08000;">1</span>; i &lt;= <span style="color:#b08000;">3</span>; i++)
25 write(<span style="color:#bf0303;">&quot;:&quot;</span> + <span style="color:#bf0303;">&quot;)&quot;</span> * i + <span style="color:#bf0303;">&quot; &quot;</span>);
26
27 write(<span style="color:#bf0303;">&quot;</span><span style="color:#924c9d;">\n</span><span style="color:#bf0303;">&quot;</span> + ({<span style="color:#bf0303;">&quot;Bye&quot;</span>, <span style="color:#bf0303;">&quot;bye&quot;</span>}) * <span style="color:#bf0303;">&quot;-&quot;</span> + <span style="color:#bf0303;">&quot;!</span><span style="color:#924c9d;">\n</span><span style="color:#bf0303;">&quot;</span>);
28
29 <span style="font-weight:bold;">return</span> <span style="color:#b08000;">0</span>;
30 }
31 </pre></body></html>