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 55 56 57 58 59 60 61 62
|
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>test.org</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Org Mode) - Theme (Breeze Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
<span style="color:#8e44ad">* Heading</span>
<span style="color:#c45b00">:PROPERTIES:</span>
<span style="color:#c45b00">:property: test</span>
<span style="color:#c45b00">:END:</span>
Regular <span style="font-weight:bold">*bold*</span> <span style="font-style:italic">/italic/</span> <span style="text-decoration:underline">_underline_</span> <span style="text-decoration:line-through">+strike-through+</span> <span style="color:#0099ff;font-weight:bold">=verbatim=</span> <span style="color:#c45b00">~code~</span> text.
Highlight <span style="text-decoration:underline">https://invent.kde.org/frameworks/syntax-highlighting</span> <span style="color:#27ae60;text-decoration:underline">[[kde.org]]</span> links.
<span style="color:#7a7c7d"># This is a comment.</span>
<span style="color:#8e44ad">** </span><span style="color:#95da4c;background-color:#4d1f24;font-weight:bold">TODO</span><span style="color:#8e44ad"> </span><span style="color:#c45b00">[#B]</span><span style="color:#8e44ad"> Heading </span><span style="color:#c45b00">[1/3]</span>
<span style="color:#da4453;font-weight:bold">+ </span><span style="color:#27aeae">[X]</span> First item
<span style="color:#da4453;font-weight:bold">+ </span><span style="color:#27aeae">[-]</span> Second item
<span style="color:#da4453;font-weight:bold"> - </span><span style="color:#27aeae">[X]</span> Sub-item
<span style="color:#da4453;font-weight:bold"> - </span><span style="color:#27aeae">[ ]</span> Sub-item 2
<span style="color:#da4453">1. </span>Number list
<span style="color:#da4453">2. </span><span style="color:#27aeae">[ ]</span> Number list with checkbox
<span style="color:#27ae60">#+NAME: showcase-block</span>
<span style="color:#c45b00">#+BEGIN_BLOCK</span>
<span style="color:#c45b00">Inside a block</span>
<span style="color:#c45b00">#+END_BLOCK</span>
<span style="color:#c45b00">#+BEGIN_SRC rust</span>
<span style="color:#3f8058">{</span>
<span style="font-weight:bold">let</span> a <span style="color:#3f8058">=</span> <span style="color:#f67400">1</span><span style="color:#3f8058">;</span>
<span style="font-weight:bold">let</span> <span style="font-weight:bold">mut</span> b <span style="color:#3f8058">=</span> <span style="color:#3f8058">&</span>a<span style="color:#3f8058">;</span>
<span style="color:#3f8058">{</span>
<span style="font-weight:bold">let</span> c <span style="color:#3f8058">=</span> <span style="color:#f67400">2</span><span style="color:#3f8058">;</span>
b <span style="color:#3f8058">=</span> <span style="color:#3f8058">&</span>c<span style="color:#3f8058">;</span>
<span style="color:#3f8058">}</span>
<span style="color:#7a7c7d">// Attempting to use `b` here will error.</span>
<span style="color:#3f8058">}</span>
<span style="color:#c45b00">#+END_SRC</span>
<span style="color:#c45b00">#+BEGIN_SRC sh</span>
<span style="color:#609ca0">echo</span> <span style="color:#f44f4f">"This is shell script syntax highlighting!"</span>
<span style="color:#7a7c7d"># comment</span>
<span style="color:#7a7c7d"># this should not change the syntax highlighting to C language: c</span>
<span style="color:#609ca0">exec</span> ls <span style="color:#2980b9">-la</span>
<span style="color:#c45b00">#+END_SRC</span>
<span style="color:#c45b00">#+BEGIN_SRC py</span>
<span style="color:#27ae60">import</span> bla
<span style="font-weight:bold">def</span> main():
<span style="color:#609ca0">print</span>(<span style="color:#f44f4f">"</span><span style="color:#f44f4f">hello world!</span><span style="color:#f44f4f">"</span>)
main()
<span style="color:#c45b00">#+END_SRC</span>
</pre></body></html>
|