diff options
| author | Georg Brandl <georg@python.org> | 2008-11-30 19:58:29 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-11-30 19:58:29 +0100 |
| commit | 0647cdecb439fa4dfd9bbdf094409e262cf33483 (patch) | |
| tree | 26ed7d538b8b814aeb402bc5cb9767c7b1b6b28c /doc/ext/appapi.rst | |
| parent | 4b201975a442d45a3ae5118a38c3baa07940f9b3 (diff) | |
| download | sphinx-0647cdecb439fa4dfd9bbdf094409e262cf33483.tar.gz | |
Add Sphinx.add_lexer().
Diffstat (limited to 'doc/ext/appapi.rst')
| -rw-r--r-- | doc/ext/appapi.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ext/appapi.rst b/doc/ext/appapi.rst index 355e42bd..3dd5282b 100644 --- a/doc/ext/appapi.rst +++ b/doc/ext/appapi.rst @@ -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) |
