djangosnippets.org: Latest snippets tagged with 'restructured-text'https://djangosnippets.org/tags/restructured-text/2007-02-27T15:29:48.334024-06:00Using Pygments with reST
2007-02-27T15:29:48.334024-06:00joshuahttps://djangosnippets.org/snippets/36/<p>UPDATED:
This now supports an argument for the initial header level.</p>
<p>This is a modified version of <code>django.contrib.markup</code> that allows you to highlight code via <a href="http://pygments.pocoo.org/">pygments</a>. The code block can be used as:</p>
<p>`Here's a paragraph, and a code example:</p>
<p>.. code:: language</p>
<pre><code>*insert code here*
</code></pre>
<p>continue with your …</p>
Freely redistributable