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
|
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.pike</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Pike) - Theme (Breeze Light)"/>
</head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
<span style="color:#898887">#! /bin/env pike</span>
<span style="color:#898887">/* This file is a syntax highlight test for Kate.</span>
<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>
<span style="color:#898887"> */</span>
<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">"http://pike.ida.liu.se/"</span>
<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)
{
<span style="color:#898887">// Write funny things with Pike :)</span>
write(<span style="color:#644a9b">`+</span>(<span style="color:#bf0303">"Command line arguments (%d of them): "</span>, @map(args, <span style="color:#644a9b">`+</span>, <span style="color:#bf0303">" "</span>)) + <span style="color:#bf0303">"</span><span style="color:#924c9d">\n</span><span style="color:#bf0303">"</span>, argc);
write(<span style="color:#bf0303">"</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">"</span>, PIKE_ON_THE_WEB);
<span style="font-weight:bold">for</span> (<span style="color:#0057ae">int</span> i = <span style="color:#b08000">1</span>; i <= <span style="color:#b08000">3</span>; i++)
write(<span style="color:#bf0303">":"</span> + <span style="color:#bf0303">")"</span> * i + <span style="color:#bf0303">" "</span>);
write(<span style="color:#bf0303">"</span><span style="color:#924c9d">\n</span><span style="color:#bf0303">"</span> + ({<span style="color:#bf0303">"Bye"</span>, <span style="color:#bf0303">"bye"</span>}) * <span style="color:#bf0303">"-"</span> + <span style="color:#bf0303">"!</span><span style="color:#924c9d">\n</span><span style="color:#bf0303">"</span>);
<span style="font-weight:bold">return</span> <span style="color:#b08000">0</span>;
}
</pre></body></html>
|