Merge pull request #9253 from tk0miya/9252_update_docs

Fix #9252: doc: Update explanation of highlight_language
This commit is contained in:
Takeshi KOMIYA 2021-05-22 01:57:11 +09:00 committed by GitHub
commit aba3a33645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,17 +591,18 @@ General configuration
.. confval:: highlight_language
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.
.. versionadded:: 0.5
.. versionchanged:: 1.4
The default is now ``'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. If you prefer Python 2
only highlighting, you can set it back to ``'python'``.
The default is now ``'default'``. If you prefer Python 2 only
highlighting, you can set it back to ``'python'``.
.. confval:: highlight_options