macOS
brew install chromalocal Homebrew formula metadata
安装
brew install chromalocal Homebrew formula metadata
sudo apt install chromaDebian stable package indexes · chroma · 来源: deb.debian.org
nix profile install nixpkgs#chromanixpkgs package indexes · pkgs/by-name/ch/chroma/package.nix · 来源: api.github.com
scoop install main/chromaScoop official bucket manifest trees · bucket/chroma.json · 来源: api.github.com
winget install --id Ubisoft.Chroma -eWindows Package Manager source index · Ubisoft.Chroma · 来源: cdn.winget.microsoft.com
概览
General purpose syntax highlighter in pure Go
历史
Chroma is a pure-Go general-purpose syntax highlighter, usable both as a Go library and as the `chroma` command-line tool.
The GitHub repository was created in June 2017. The README describes Chroma as converting source code and structured text into highlighted HTML, ANSI-colored text, and other output, with lexers, formatters, and styles modeled heavily on Pygments.
The project published v0.1.0 in September 2017, v2.0.0 in May 2022, and continued a fast v2 release line through 2026, with v3 alpha releases introducing Go iterator changes and a new module path.
Chroma's adoption is partly library-driven: it has Go package documentation, a playground, and a CLI, while static-site and documentation tooling can embed it to avoid a Python/Pygments runtime. Homebrew packages the CLI and reports stable version 2.27.0.
The supplied package-manager facts list Homebrew, Debian, Ubuntu, Nix, and Scoop packages, showing distribution beyond the Go module ecosystem.
Library users select a lexer, formatter, and style, or use the `quick.Highlight` helper. CLI users can run `chroma` directly and inspect available lexers with `chroma --list`.
Chroma is package-nerd interesting because it made Pygments-style highlighting available as a native Go dependency and standalone binary. That matters for self-contained Go programs, static-site generators, and container images that want syntax highlighting without a Python toolchain.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
chroma | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/alecthomas/chroma
安装元数据
| 软件包键 | brew:chroma |
|---|---|
| 版本 | 2.27.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/chroma |
| 主页 | https://github.com/alecthomas/chroma |
| 仓库 | https://github.com/alecthomas/chroma |
| 上游文档 | https://github.com/alecthomas/chroma#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/alecthomas/chroma/archive/refs/tags/v2.27.0.tar.gz |
| 最后更新 | 2026-06-17T03:40:19Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | chroma |
| 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 软件包链接分开显示。
chroma 1.19-2
Abstract puzzle game - graphical version
sudo apt install chromachroma-curses 1.19-2
Abstract puzzle game - terminal version
sudo apt install chroma-curseschroma-data 1.19-2
Abstract puzzle game - data files
sudo apt install chroma-datachroma
nix profile install nixpkgs#chromachroma 1.19-1ubuntu1
Abstract puzzle game - graphical version
sudo apt install chromachroma-curses 1.19-1ubuntu1
Abstract puzzle game - terminal version
sudo apt install chroma-curseschroma-data 1.19-1ubuntu1
Abstract puzzle game - data files
sudo apt install chroma-datamain/chroma
scoop install main/chromaUbisoft.Chroma
winget install --id Ubisoft.Chroma -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.