File: syntax_color_opts.html

package info (click to toggle)
python-markdown2 2.3.7-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,952 kB
  • sloc: python: 2,790; makefile: 35
file content (15 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<p>Here is some sample code:</p>

<div class="codehilite" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><code><span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">sys</span>
<span style="color: #008000; font-weight: bold">def</span> <span style="color: #0000FF">main</span>(argv<span style="color: #666666">=</span>sys<span style="color: #666666">.</span>argv):
    logging<span style="color: #666666">.</span>basicConfig()
    log<span style="color: #666666">.</span>info(<span style="color: #BA2121">&#39;hi&#39;</span>)
</code></pre></div>

<p>and:</p>

<div class="codehilite" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><code>use <span style="color: #BA2121">&#39;zlib&#39;</span>
<span style="color: #008000">sub</span> main(argv)
    <span style="color: #008000">puts</span> <span style="color: #BA2121">&#39;hi&#39;</span>
<span style="color: #008000; font-weight: bold">end</span>
</code></pre></div>