Login

Snippets by mgiger

Snippet List

pygments stylize

Simple tag to enable easy parsing of inline code within a template. Usage: {% stylize "language" %}...language text...{% endstylize %}. Make sure to set the language for Pygments to parse as the first argument to the tag. You will also need to include a copy of the CSS that Pygments uses. The [Pygments](http://pygments.org/) library is required for this tag.

  • pygments
  • templatetags
Read More

mgiger has posted 1 snippet.