sourcecode django tag

example:

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

result:

Python
1
print "Python is cool!"

Info:

more info, on PyLucid homepage: highlight source code