chroma
brew install chroma
v2.27.0
MIT
General purpose syntax highlighter in pure Go
515
30-day installs · #1725
939
90-day · #2267
3.1k
365-day · #2389
5.0k
★ GitHub stars · updated 2mo ago
Build dependencies
GitHub topics
console
go
golang
highlighter
highlighting
html
library
syntax
tool
Links
- https://github.com/alecthomas/chroma
- GitHub: alecthomas/chroma
- Brew formula source: Formula/c/chroma.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"go"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "General purpose syntax highlighter in pure Go",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:22+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "chroma",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-17T11:11:55Z",
"github_readme_excerpt": "\n\n\u003e [!NOTE]\n\u003e **v3 alpha available.** Chroma v3 replaces the custom `Iterator` type with Go\u0027s built-in `iter.Seq[Token]`, removes the `EOF` sentinel, and bumps the module path to `github.com/alecthomas/chroma/v3`. See the [v3.0.0-alpha.1](https://github.com/alecthomas/chroma/releases/tag/v3.0.0-alpha.1) release for migration details.\n\n# A general purpose syntax highlighter in pure Go\n\n[](https://pkg.go.dev/github.com/alecthomas/chroma/v3) [](https://github.com/alecthomas/chroma/actions/workflows/ci.yml) [](https://invite.slack.golangbridge.org/)\n\n\nChroma takes source code and other structured text and converts it into syntax\nhighlighted HTML, ANSI-coloured text, etc.\n\nChroma is based heavily on [Pygments](http://pygments.org/), and includes\ntranslators for Pygments lexers and styles.\n\n## Table of Contents\n\n\u003c!-- TOC --\u003e\n\n1. [Supported languages](#supported-languages)\n2. [Try it](#try-it)\n3. [Using the library](#using-the-library)\n 1. [Quick start](#quick-start)\n 2. [Identifying the language](#identifying-the-language)\n 3. [Formatting the output](#formatting-the-output)\n 4. [The HTML formatter](#the-html-formatter)\n4. [More detail](#more-detail)\n 1. [Lexers](#lexers)\n 2. [Formatters](#formatters)\n 3. [Styles](#styles)\n5. [Command-line interface](#command-line-interface)\n6. [Testing lexers](#testing-lexers)\n7. [What\u0027s missing compared to Pygments?](#whats-missing-compared-to-pygments)\n\n\u003c!-- /TOC --\u003e\n\n## Supported languages\n\n| Prefix | Language\n| :----: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",
"github_repo": "alecthomas/chroma",
"github_stars": 4961,
"github_topics": [
"console",
"go",
"golang",
"highlighter",
"highlighting",
"html",
"library",
"syntax",
"tool"
],
"homepage": "https://github.com/alecthomas/chroma",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 515,
"installs_365d": 3083,
"installs_90d": 939,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "chroma",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1725,
"rank_365d": 2389,
"rank_90d": 2267,
"raw_hash": "428d39e07a676dd3",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/chroma.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "2.27.0",
"versioned_formulae": [],
"why_use_this": null
}