sourcecode django tag

example:

HTML+Django/Jinja
1
2
3
{% sourcecode ext=".py" %}
print "Python is cool!"
{% endsourcecode %}

See also existing pygments lexers.

result:

{% sourcecode ext=".py" %} print "Python is cool!" {% endsourcecode %}

Info:

more info, on PyLucid homepage: highlight source code