CodeHilite: expand option support · Issue #334 · Python-Markdown/markdown (original) (raw)
I would like to use Python Markdown in conjunction with CodeHilite plugin + Pygments to highlight some PHP code snippets, often one-liners. Currently, CodeHilite doesn't allow any lexer configuration (only some formatter configuration).
Pygments' default PHP lexer has the option startinline
, which is set to False
by default. This means that if I want any PHP code highlighted, I must start it with <?php
. This is not very pretty (again: think about one-liners) and I would rather have Pygments instructed to switch this setting to True
.
Currently it is not possible to pass in any lexer options to CodeHilite. It would be nice to be able to add lexer configuration to the lexer name, e.g.: