Lexer is guessed by lexer name arguments are passed into the formatter
Syntax:
{% highlight [source code] [lexer name] [formatter options] %}Example:
{% highlight 'print "Hello World"' python linenos=true %}
This is a function tag.
Returns highlighted code div tag from HtmlFormatter Lexer is guessed by lexer name arguments are passed into the formatter
Syntax:
{% highlight_block [lexer name] [formatter options] %} ... source code .. {% endhighlight_block %}Example:
{% highlight_block python linenos=true %} print '{{ request.path }}' {% endhighlight_block %}
This is a block tag.
cssclass is the name of the div css class to use
Syntax:
{% highlight_style [cssclass] [formatter options] %}Example:
{% highlight_style code linenos=true %}
This is a function tag.