---
title: "Pygments | pypx"
description: "Pygments is a syntax highlighting package written in Python."
canonical_url: "https://pypx.app/packages/Pygments"
meta:
  "og:description": "Pygments is a syntax highlighting package written in Python."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_Pygments%2Cversion_2.21.0%2Csummary_Pygments%2Bis%2Ba%2Bsyntax%2Bhighlighting%2Bpackage%2Bwritten%2Bin%2BPython.%2Clicense_BSD-2-Clause%2Cp_Ii9wYWNrYWdlcy9QeWdtZW50cyI%2Cs_7HAYhW0nrCCp6mek.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Pygments 2.21.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_Pygments%2Cversion_2.21.0%2Csummary_Pygments%2Bis%2Ba%2Bsyntax%2Bhighlighting%2Bpackage%2Bwritten%2Bin%2BPython.%2Clicense_BSD-2-Clause%2Cp_Ii9wYWNrYWdlcy9QeWdtZW50cyI%2Cs_7HAYhW0nrCCp6mek.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **Pygments**

v2.21.0

Pygments is a syntax highlighting package written in Python.

1.2 MB Python 3.9+ py3-none-anyBSD-2-Clause

[** Diff **](https://pypx.app/packages/Pygments/diff)

`$ uv add Pygments`

### Pygments

Pygments is a syntax highlighting package written in Python.

It is a generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications that need to prettify source code. Highlights are:

- a wide range of over 500 languages and other text formats is supported
- special attention is paid to details, increasing quality by a fair amount
- support for new languages and formats are added easily
- a number of output formats, presently HTML, LaTeX, RTF, SVG, all image

formats that PIL supports and ANSI sequences

- it is usable as a command-line tool and as a library

Copyright 2006-present by the Pygments team, see AUTHORS. Licensed under the BSD, see LICENSE for details.

## **Details **

<dl>

<dt>Version</dt>
<dd>2.21.0</dd>

<dt>License</dt>
<dd>BSD-2-Clause</dd>

<dt>Python</dt>
<dd>&gt;=3.9</dd>

<dt>Maintainer</dt>
<dd>Georg Brandl &lt;georg@python.org&gt;</dd></dl>

## **Links**

- [Bug Tracker](https://github.com/pygments/pygments/issues)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Documentation](https://pygments.org/docs)
- [Homepage](https://pygments.org)
- [Source](https://github.com/pygments/pygments)
- [View on PyPI](https://pypi.org/project/Pygments/)

## **Release Cadence **

**2**

releases in the past year

avg 106 days between releases

## **Maintainers **

- Georg Brandl · [georg@python.org](mailto:georg@python.org)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/pygments#webpage","@type":"WebPage","description":"Pygments is a syntax highlighting package written in Python.","name":"Pygments","url":"https://pypx.app/packages/pygments","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/pygments"]}]},{"@id":"https://pypx.app/packages/pygments#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Pygments is a syntax highlighting package written in Python.","license":"BSD-2-Clause","name":"Pygments","softwareVersion":"2.21.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
