File: fenced_code_blocks_syntax_highlighting.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 (12 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span>
    <span class="k">print</span> <span class="s2">&quot;hi&quot;</span>
</code></pre></div>

<p>That's using the <em>fenced-code-blocks</em> extra with Python
syntax coloring, if <code>pygments</code> is installed. See
<a href="http://github.github.com/github-flavored-markdown/">http://github.github.com/github-flavored-markdown/</a>.</p>

<div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">foo</span>
    <span class="nb">puts</span> <span class="s2">&quot;hi&quot;</span>
<span class="k">end</span>
</code></pre></div>