Pygments

Pygments is a syntax highlighting package written in Python.

68 个版本 Python >=3.9
安装
pip install Pygments
poetry add Pygments
pipenv install Pygments
conda install 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.
版本列表
2.20.0 2026-03-29
2.19.2 2025-06-21
2.19.1 2025-01-06
2.19.0 2025-01-05
2.18.0 2024-05-04
2.17.2 2023-11-21
2.17.1 2023-11-19
2.17.0 2023-11-18
2.16.1 2023-08-06
2.16.0 2023-08-06
2.15.1 2023-04-18
2.15.0 2023-04-10
2.14.0 2023-01-01
2.13.0 2022-08-15
2.12.0 2022-04-24
2.11.2 2022-01-06
2.11.1 2021-12-31
2.11.0 2021-12-30
2.10.0 2021-08-15
2.9.0 2021-05-03
2.8.1 2021-03-07
2.8.0 2021-02-14
2.7.4 2021-01-12
2.7.3 2020-12-06
2.7.2 2020-10-24
2.7.1 2020-09-17
2.7.0 2020-09-12
2.6.1 2020-03-09
2.6.0 2020-03-10
2.5.2 2019-11-29
2.5.1 2019-11-26
2.4.2 2019-05-28
2.4.1 2019-05-24
2.4.0 2019-05-08
2.3.1 2018-12-16
2.3.0 2018-11-25
2.2.0 2017-01-22
2.1.3 2016-03-02
2.1.2 2016-02-29
2.1.1 2016-02-14
2.1 2016-01-17
2.0.2 2015-01-20
2.0.1 2014-11-10
2.0 2014-11-09
2.0rc1 2014-10-16
1.6 2013-02-05
1.5 2012-03-10
1.4 2011-01-03
1.3.1 2010-03-05
1.3 2010-03-01
1.2.2 2010-01-02
1.2.1 2010-01-02
1.2 2010-01-01
1.1.1 2009-09-15
1.1 2009-09-11
1.0 2008-11-23
1.6rc1 2013-01-09
0.11.1 2008-08-24
0.11 2008-08-23
0.10 2008-05-06
0.9 2007-10-14
0.8.1 2007-06-27
0.8 2007-05-30
0.7.1 2007-02-15
0.7 2007-02-14
0.6 2006-12-20
0.5.1 2006-10-30
0.5 2006-10-30