Pygments is a syntax highlighting package written in Python.

syntax, highlighting, python, syntax-highlighting
pip install Pygments==2.12.0


Welcome to Pygments

This is the source of Pygments. It is a generic syntax highlighter written in Python that supports over 500 languages and text formats, for use in code hosting, forums, wikis or other applications that need to prettify source code.


... works as usual, use pip install Pygments to get published versions, or python install to install from a checkout.


... can be found online at or created with Sphinx by

cd doc
make html


... takes place on GitHub, where the Git repository, tickets and pull requests can be viewed.

Continuous testing runs on GitHub workflows:

Contribution guidelines are found in

The authors

Pygments is maintained by Georg Brandl, e-mail address and Matthäus Chajdas.

Many lexers and fixes have been contributed by Armin Ronacher, the rest of the Pocoo team and Tim Hatch.

The code is distributed under the BSD 2-clause license. Contributors making pull requests must agree that they are able and willing to put their contributions under that license.