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
|
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.hjson</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Hjson) - Theme (Breeze Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
<span style="font-weight:bold">{</span>
<span style="color:#7a7c7d">// Numbers:</span>
<span style="color:#2980b9"> integer</span>: <span style="color:#f67400">12</span>
<span style="color:#2980b9"> decimal</span>: <span style="color:#f67400">12.3</span>
<span style="color:#7a7c7d">// maybe you prefer js style comments</span>
<span style="color:#7a7c7d">/* or if you feel old fashioned */</span>
<span style="color:#2980b9"> string</span>: <span style="color:#f44f4f">"One two three"</span>
<span style="color:#7a7c7d"># comments are useful</span>
<span style="color:#2980b9"> "rate1"</span>: <span style="color:#f67400">1000</span>,
<span style="color:#2980b9"> "rate2"</span>: <span style="color:#f67400">2000</span>
<span style="color:#7a7c7d"># quotes are optional</span>
<span style="color:#2980b9"> text</span>: look ma, no quotes!
<span style="color:#7a7c7d"># note that for quoteless strings everything up</span>
<span style="color:#7a7c7d"># to the next line is part of the string!</span>
<span style="color:#2980b9"> map</span>:
<span style="font-weight:bold">{</span>
<span style="color:#2980b9"> a</span>: <span style="color:#f67400">1</span>
<span style="color:#2980b9"> b</span>: <span style="color:#f67400">2</span>
<span style="font-weight:bold">}</span>
<span style="color:#2980b9"> map_with_commas</span>:
<span style="font-weight:bold">{</span>
<span style="color:#2980b9"> a</span>: <span style="color:#f67400">1</span>,
<span style="color:#2980b9"> b</span>: <span style="color:#f67400">2</span>,
<span style="font-weight:bold">}</span>
<span style="color:#2980b9"> multiline_text</span>:
<span style="color:#2980b9"> ''</span><span style="color:#f44f4f">'</span>
<span style="color:#f44f4f"> KDE is a customizable,</span>
<span style="color:#f44f4f"> open-source desktop environment</span>
<span style="color:#f44f4f"> with a modern Plasma interface.</span>
<span style="color:#f44f4f"> '''</span>
<span style="color:#2980b9"> numbers</span>: <span style="font-weight:bold">[</span> <span style="color:#f67400">1</span>, <span style="color:#f67400">2</span>, <span style="color:#f67400">3</span>, <span style="color:#f67400">6</span>, <span style="color:#f67400">42</span> <span style="font-weight:bold">]</span>,
<span style="color:#2980b9"> complex_list</span>: <span style="font-weight:bold">[</span>
<span style="font-weight:bold">{</span> a: <span style="color:#f67400">1</span>, b: <span style="color:#f67400">2</span>, c: <span style="color:#f44f4f">"string"</span> <span style="font-weight:bold">}</span>,
<span style="font-weight:bold">{</span> d: <span style="color:#f67400">3</span>, e: <span style="color:#f67400">4.1</span>, f: string without quotes <span style="font-weight:bold">}</span>
<span style="font-weight:bold">]</span>
<span style="font-weight:bold">}</span>
</pre></body></html>
|