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 | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:chroma |
|---|---|
| 版本 | 2.27.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/alecthomas/chroma |
| 仓库 | https://github.com/alecthomas/chroma |
| 最后更新 | 2026-07-25T14:20:49-04:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 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.