Add highlight_options configuration value

This changeset adds the `highlight_options` configuration value, which
specifies a dict of key-value pairs to pass to the Pygments highlighter
specified with `highlight_language`. For example, specifying
`highlight_options = {'funcnamehighlighting' : False}` for the 'php'
lexer will disable function name highlighting.
Both the HTML and LaTeX writers have been updated to include the
options when calling `highlight_block()`, as long as the currently
selected language matches what was set with `highlight_language`, i.e.
not when modified by `highlight::` or `code-block::` directives.
This commit is contained in:
EricFromCanada
2015-01-05 12:49:06 -05:00
parent 649e2cd41b
commit a63e4945ea
7 changed files with 36 additions and 7 deletions

View File

@@ -9,6 +9,8 @@ Incompatible changes
Features added
--------------
* Added ``highlight_options`` configuration value.
Bugs fixed
----------