Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments-2.21.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments-2.21.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file pygments-2.21.0.tar.gz.

File metadata

  • Download URL: pygments-2.21.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for pygments-2.21.0.tar.gz
Algorithm Hash digest
SHA256 610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
MD5 4d661a27d62d2924d4c7b4ab53aa6dcf
BLAKE2b-256 492eced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b

See more details on using hashes here.

File details

Details for the file pygments-2.21.0-py3-none-any.whl.

File metadata

  • Download URL: pygments-2.21.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for pygments-2.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9
MD5 eaaa46b6eef9ba4d6abd73d4f45be371
BLAKE2b-256 714617f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page