All Tools
A
Dev ToolsFreeOpen Source
ALECTHOMAS CHROMA
General-purpose syntax highlighter in pure Go
MIT
ABOUT
Agent UIs and Go CLIs need highlighted code in HTML or the terminal, but Pygments is Python-only. Chroma ports those lexers to pure Go so you can color model output, diffs, and snippets inside a Go binary without spawning Python.
INSTALL
go get github.com/alecthomas/chroma/v2INTEGRATION GUIDE
1. Highlight code blocks in an agent chat UI served from Go
2. Color diffs and source in a terminal code-review CLI
3. Render HTML docs for generated tools and prompts
4. Tokenize mixed-language snippets from LLM completions
TAGS
gosyntax-highlightingpygmentshtmlcli