
Pygments
Python syntax highlighter for source code, usable as a library and as a command-line tool, with HTML among its output formats.
Pygments is a Python library and command-line tool that highlights source code. Its output formats include HTML, RTF, LaTeX and ANSI sequences. The README names code hosting sites, forums and wikis as the places that need to prettify source code.
Worth knowing
The README’s security section says Pygments gives no guarantee on execution time for arbitrary input. It recommends that a web service highlighting user input ends each run after a short timeout and limits how many run at once.
Identity
- Status
- Active
- Maintainer
- Georg Brandl4
- Maintained by
- Individual4
- First release
- 20065
Rendering and deploy
- Install with
- pip1
Releases
Adoption
Sources
- 2026-11-16: links, Install with
pygments.org/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/pygments/pygments - 2026-11-16: links
pygments.org/docs/ - 2026-11-16: Maintainer, Maintained by, Categories, License
github.com/pygments/pygments/blob/master/README.rst - 2026-11-16: First release
pypi.org/pypi/pygments/json - 2026-11-16: Runtime, Minimum runtime
github.com/pygments/pygments/blob/2.21.0/pyproject.toml - 2026-11-16: Current major version, Last release
api.github.com/repos/pygments/pygments/releases - 2026-11-16: Contributors
api.github.com/repos/pygments/pygments/contributors