Jinja2 extension to highlight source code using Pygments
Project description
* jinja2-highlight *
About:
A simple Jinja2 template engine extension that uses Pygments to highlight code blocks.
Source:
Requirements:
Jinja2 >= 2.4
Pygments >= 1.5
Highlight statement:
{% highlight ‘language’ %} code-goes-here {% endhighlight %}
Replace language with the appropriate Pygments lexer short name: http://pygments.org/docs/lexers/
Using with Flask framework:
See example at: https://github.com/tlatsas/jinja2-highlight/tree/master/examples/flask
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2-highlight-0.3.tar.gz
(2.1 kB
view hashes)