You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting is an advantage for writers, editors, and readers.
reStructuredText PEPs are rendered into HTML with docutils. Syntax highlighting in Docutils 0.9+ is powered by Pygments. If Pygments is not installed, or there is a syntax error, syntax highlighting is absent. Docutils renders .. code:: blocks with Python syntax highlighting by default. You can specify .. code:: python or .. code:: python3.
GitHub shows Pygments syntax highlighting
for .. code:: directives for .rst and .restructuredtext documents
Syntax highlighting is an advantage for writers, editors, and readers.
reStructuredText PEPs are rendered into HTML with docutils. Syntax highlighting in Docutils 0.9+ is powered by Pygments. If Pygments is not installed, or there is a syntax error, syntax highlighting is absent. Docutils renders
.. code::
blocks with Python syntax highlighting by default. You can specify.. code:: python
or.. code:: python3
.for
.. code::
directives for .rst and .restructuredtext documentsBuild PEPs using Sphinx peps#2
Move the PEPs to Read the Docs core-workflow#5
In order to use pygments with pythondotorg-hosted PEPs, a few things need to happen:
pygments
inbase-requirements.txt
PEPs may use
.. code::
directives instead of::
so that code is syntax highlighted.The text was updated successfully, but these errors were encountered: