mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Add Sphinx.add_lexer().
This commit is contained in:
@@ -167,6 +167,13 @@ the following public API:
|
||||
:confval:`the docs for the config value <html_static_path>`.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. method:: Sphinx.add_lexer(alias, lexer)
|
||||
|
||||
Use *lexer*, which must be an instance of a Pygments lexer class, to
|
||||
highlight code blocks with the given language *alias*.
|
||||
|
||||
.. versionadded:: 0.6
|
||||
|
||||
.. method:: Sphinx.connect(event, callback)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user