Add Sphinx.add_lexer().

This commit is contained in:
Georg Brandl
2008-11-30 19:58:29 +01:00
parent 31a46c6930
commit 50339493c6
5 changed files with 55 additions and 0 deletions
+7
View File
@@ -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)