Warning, file /frameworks/syntax-highlighting/autotests/html/highlight_lpc.c.html was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>highlight_lpc.c</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (LPC) - Theme (Breeze Light)"/>
0006 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
0007 <span style="color:#898887;">// </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;">: This is a test file for kate's LPC syntax highlighting.</span>
0008 
0009 <span style="color:#898887;">// This is a Single-Line Comment</span>
0010 <span style="color:#898887;">/* This is a Multi-</span>
0011 <span style="color:#898887;">                   Line Comment */</span>
0012 
0013 <span style="color:#898887;">// This again is a Single-Line Comment which should end here /*</span>
0014 
0015 <span style="color:#898887;">// And this is an evil single line comment \</span>
0016 <span style="color:#898887;">   which should include this and the next line because of the \</span>
0017 <span style="color:#898887;">   Do not use this style at home, kids.</span>
0018 <span style="color:#0057ae;background-color:#e0e9f8;">// BEGIN region marker</span>
0019 
0020 <span style="color:#0057ae;background-color:#e0e9f8;">// END of region marker</span>
0021 
0022 <span style="color:#0057ae;">private</span> <span style="color:#0057ae;">void</span> create()
0023 {
0024 <span style="color:#898887;">// Some Preprocessor stuff:</span>
0025 <span style="color:#006e28;">#define SOME_STUFF </span><span style="font-weight:bold;">if</span><span style="color:#006e28;">(foo(</span><span style="color:#bf0303;">&quot;bar&quot;</span><span style="color:#006e28;">)) \</span>
0026 <span style="color:#006e28;">                   { \</span>
0027 <span style="color:#006e28;">                       bar(</span><span style="color:#bf0303;">&quot;foo&quot;</span><span style="color:#006e28;">); \</span>
0028 <span style="color:#006e28;">                   } </span><span style="color:#898887;">// Preprocessor, Keyword, Preprocessor-String, Multiline</span>
0029 
0030     <span style="color:#898887;">// Some closures:</span>
0031     <span style="color:#006e28;">#'create</span>;
0032     <span style="color:#006e28;">#'?!</span>;
0033 
0034 
0035     <span style="color:#898887;">/* Some other Data Types: */</span>
0036 
0037     <span style="color:#0057ae;">int</span> i = <span style="color:#b08000;">1</span>;            <span style="color:#898887;">// Integer.</span>
0038     <span style="color:#0057ae;">float</span> b = <span style="color:#b08000;">2.34</span>;       <span style="color:#898887;">// Float.</span>
0039     <span style="color:#0057ae;">int</span> c = <span style="color:#b08000;">0b001</span>;        <span style="color:#898887;">// Binary</span>
0040     <span style="color:#0057ae;">int</span> e = <span style="color:#b08000;">0x019Beef</span>;    <span style="color:#898887;">// Hexadecimal</span>
0041     <span style="color:#0057ae;">int</span> f = <span style="color:#b08000;">0o2345</span>;       <span style="color:#898887;">// Octal</span>
0042     <span style="color:#0057ae;">string</span> a = <span style="color:#bf0303;">&quot;Wheee&quot;</span>;   <span style="color:#898887;">// String</span>
0043     <span style="color:#0057ae;">string</span> x = <span style="color:#bf0303;">&quot;Wheee</span>\
0044 <span style="color:#bf0303;">     heee&quot;</span>;               <span style="color:#898887;">// Multi-Line String, again, don't use this.</span>
0045 
0046 
0047 
0048     <span style="color:#898887;">/* Some keywords: */</span>
0049     <span style="font-weight:bold;">if</span>(<span style="color:#b08000;">1</span>)
0050     {
0051         <span style="font-weight:bold;">switch</span>(<span style="color:#b08000;">2</span>)
0052         {
0053             <span style="font-weight:bold;">case</span> <span style="color:#b08000;">3</span>:
0054                 <span style="color:#b08000;">4</span>;
0055                 <span style="font-weight:bold;">break</span>;
0056         }
0057     }
0058 
0059     <span style="font-weight:bold;">else</span>
0060     {
0061         <span style="font-weight:bold;">return</span> <span style="color:#b08000;">0</span>;
0062     }
0063 }
0064 
0065 <span style="color:#898887;">/*</span>
0066 <span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">WARNING</span><span style="color:#898887;">: If the above function is part of a multi-line comment,</span>
0067 <span style="color:#898887;">         it's buggy. The </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">WARNING</span><span style="color:#898887;">: itself should be a comment-keyword.</span>
0068 <span style="color:#898887;">         That's not actually part of the language, but simply used</span>
0069 <span style="color:#898887;">         to highlight important stuff inside comments like </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#898887;">: etc.</span>
0070 <span style="color:#898887;">*/</span>
0071 </pre></body></html>