Задать вопрос

Тел: +7 965 3737 888

400

Просмотров

2

Ответов

Pygments Syntax highlighting template tag

This template tag will attempt to apply pygments syntax highlighting to anything inside {% code %} and {% endcode %} tags. You can optionally pass in the language to highlight in the form of {% code 'lang' %} - if you don't, it will first try to guess the syntax, and then fall back to Python syntax highlighting.

Вопрос полезен? Да0/Нет0
file_4403.py(946.0б)
None

Ответы (2):

Ответgirasquid:26.11.2008
Ответ полезен? Да0/Нет0

Whoops, sorry about that - I've added the pygments imports to the top of the snippet now.

Ответtarken:24.11.2008
Ответ полезен? Да0/Нет0

I think we're missing a very important piece here: the imports

Other than that, cool!