Skip to content
Pygments is a generic syntax highlighter written in Python
Python Emacs Lisp Smalltalk Shell COBOL C Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows tests: split out "random input" test and make github tests verbose Dec 9, 2019
doc all: fixup http->https for github, pypi, pocoo etc URLs Dec 10, 2019
external autopygmentize: various improvements and fixes Nov 25, 2019
pygments all: fixup http->https for github, pypi, pocoo etc URLs Dec 10, 2019
scripts add github release step Nov 29, 2019
tests This commit adds a lexer for linux kernel logs as outputted by `dmesg` Dec 9, 2019
.coveragerc Cleanup test modules, more pytest-like testing. Nov 10, 2019
.gitignore Cleanup test modules, more pytest-like testing. Nov 10, 2019
AUTHORS This commit adds a lexer for linux kernel logs as outputted by `dmesg` Dec 9, 2019
CHANGES dmesg lexer refinements: Dec 9, 2019
Contributing.md Improve docs. Dec 8, 2019
LICENSE Add license information to generated files (fixes #1496). May 7, 2019
MANIFEST.in update MANIFEST: no pygmentize, no TODO anymore Nov 29, 2019
Makefile Remove generated output/ directory when 'make clean' is called Nov 29, 2019
README.rst all: fixup http->https for github, pypi, pocoo etc URLs Dec 10, 2019
pytest.ini Initial port to py.test Nov 10, 2019
requirements.txt Add "pytest-randomly" to requirements, to display random seed. Nov 10, 2019
setup.cfg Remove deprecated license_file from setup.cfg Nov 24, 2019
setup.py update claim about number of lexers Nov 30, 2019
tox.ini Document and test all supported Python versions Nov 24, 2019

README.rst

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.

Installing

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

Documentation

... can be found online at https://pygments.org/ or created with Sphinx by

cd doc
make html

Development

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

Continuous testing runs on GitHub workflows:

The authors

Pygments is maintained by Georg Brandl, e-mail address georg@python.org 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.

You can’t perform that action at this time.