macOS
brew install pygmentslocal Homebrew formula metadata
安装
brew install pygmentslocal Homebrew formula metadata
sudo apt install python-pygments-docDebian stable package indexes · python-pygments-doc · 来源: deb.debian.org
sudo dnf install python3-pygmentsFedora Rawhide package metadata · python3-pygments · 来源: dl.fedoraproject.org
sudo pacman -S python-pygmentsArch Linux sync databases · python-pygments · 来源: geo.mirror.pkgbuild.com
概览
Generic syntax highlighter
历史
Pygments is a generic Python syntax-highlighting library and command-line tool for programming languages and structured text formats.
Pygments began with the 0.5 public release in October 2006 and reached 1.0 in November 2008. The 1.1 release added Python 3 support in 2009. Continued releases have expanded its lexer collection and maintained both the embeddable Python API and the `pygmentize` command.
Pygments' library-first design let documentation generators, code-hosting systems, forums, wikis, and other applications embed the same lexer-and-formatter machinery. Its pure-Python distribution and permissive license also made it straightforward for language and operating-system package managers to carry.
Use `pygmentize` for shell pipelines and file conversion, selecting lexers, formatters, and styles as needed. Python applications can instead call the Pygments API directly to lex source text and produce HTML, terminal, document, or image output.
Pygments is infrastructure that users often consume indirectly through documentation and publishing tools. Package maintainers care about its broad lexer inventory, stable token model, plugin interface, and ability to emit terminal, HTML, LaTeX, image, and other presentation formats from one implementation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pygmentize | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:pygments |
|---|---|
| 版本 | 2.21.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pygments |
| 主页 | https://pygments.org/ |
| 仓库 | https://github.com/pygments/pygments |
| 上游文档 | https://pygments.org/ |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz |
| 最后更新 | 2026-10-10T19:07:44Z |
| Pulse | updated |
| 依赖 | python@3.15 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pygments |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
python-pygments-doc 2.18.0+dfsg-2
documentation for the Pygments
sudo apt install python-pygments-docpython3-pygments 2.18.0+dfsg-2
syntax highlighting package written in Python 3
sudo apt install python3-pygmentspython-pygments-doc 2.17.2+dfsg-1
documentation for the Pygments
sudo apt install python-pygments-docpython3-pygments 2.17.2+dfsg-1
syntax highlighting package written in Python 3
sudo apt install python3-pygmentspython3-pygments 2.20.0-5.fc45
Syntax highlighting engine written in Python
sudo dnf install python3-pygmentspython-pygments 2.20.0-1
Python syntax highlighter
sudo pacman -S python-pygments来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.