From 0647cdecb439fa4dfd9bbdf094409e262cf33483 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 30 Nov 2008 19:58:29 +0100 Subject: Add Sphinx.add_lexer(). --- doc/ext/appapi.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/ext/appapi.rst') 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 `. .. 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) -- cgit v1.2.1