mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9253 from tk0miya/9252_update_docs
Fix #9252: doc: Update explanation of highlight_language
This commit is contained in:
commit
aba3a33645
@ -591,17 +591,18 @@ General configuration
|
|||||||
.. confval:: highlight_language
|
.. confval:: highlight_language
|
||||||
|
|
||||||
The default language to highlight source code in. The default is
|
The default language to highlight source code in. The default is
|
||||||
``'python3'``. The value should be a valid Pygments lexer name, see
|
``'default'``. It is similar to ``'python3'``; it is mostly a superset of
|
||||||
|
``'python'`` but it fallbacks to ``'none'`` without warning if failed.
|
||||||
|
``'python3'`` and other languages will emit warning if failed.
|
||||||
|
|
||||||
|
The value should be a valid Pygments lexer name, see
|
||||||
:ref:`code-examples` for more details.
|
:ref:`code-examples` for more details.
|
||||||
|
|
||||||
.. versionadded:: 0.5
|
.. versionadded:: 0.5
|
||||||
|
|
||||||
.. versionchanged:: 1.4
|
.. versionchanged:: 1.4
|
||||||
The default is now ``'default'``. It is similar to ``'python3'``;
|
The default is now ``'default'``. If you prefer Python 2 only
|
||||||
it is mostly a superset of ``'python'`` but it fallbacks to
|
highlighting, you can set it back to ``'python'``.
|
||||||
``'none'`` without warning if failed. ``'python3'`` and other
|
|
||||||
languages will emit warning if failed. If you prefer Python 2
|
|
||||||
only highlighting, you can set it back to ``'python'``.
|
|
||||||
|
|
||||||
.. confval:: highlight_options
|
.. confval:: highlight_options
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user