Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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 documentspython/peps#2
python/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: