# Pygments

Python syntax highlighter for source code, usable as a library and as a command-line tool, with HTML among its output formats.


Source: https://findsoftware.frbit.cloud/pygments/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://pygments.org/
- repository: https://github.com/pygments/pygments
- docs: https://pygments.org/docs/

### Identity

- status: active
- maintainer: Georg Brandl
- maintainerType: individual
- parent: unknown
- firstRelease: 2006
- hqCountry: unknown

### Kind

- category: library
- hosting: python
- language: python
- runtime: python
- runtimeMin: python 3.9
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: pip

### License

- licenseModel: open-source
- license: BSD-2-Clause

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-08-17

### Adoption

- githubStargazers: 2223
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 387
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://pygments.org/ (read 2026-11-16)
- urls: https://api.github.com/repos/pygments/pygments (read 2026-11-16)
- urls: https://pygments.org/docs/ (read 2026-11-16)
- maintainer: https://github.com/pygments/pygments/blob/master/README.rst (read 2026-11-16)
- maintainerType: https://github.com/pygments/pygments/blob/master/README.rst (read 2026-11-16)
- firstRelease: https://pypi.org/pypi/pygments/json (read 2026-11-16)
- category: https://github.com/pygments/pygments/blob/master/README.rst (read 2026-11-16)
- language: https://api.github.com/repos/pygments/pygments (read 2026-11-16)
- runtime: https://github.com/pygments/pygments/blob/2.21.0/pyproject.toml (read 2026-11-16)
- runtimeMin: https://github.com/pygments/pygments/blob/2.21.0/pyproject.toml (read 2026-11-16)
- installMethod: https://pygments.org/ (read 2026-11-16)
- license: https://github.com/pygments/pygments/blob/master/README.rst (read 2026-11-16)
- currentMajor: https://api.github.com/repos/pygments/pygments/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/pygments/pygments/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/pygments/pygments (read 2026-11-16)
- contributors: https://api.github.com/repos/pygments/pygments/contributors (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
