Registry / utility / alecthomas-chroma-v2

alecthomas-chroma-v2

JSON →
library2.26.1gogounverified

Package chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc.

go get github.com/alecthomas/chroma/v2
INSTALL
IMPORT
SIG · ALECTHOMAS-CHROMA-
A
alecthomas-chroma-v2
utilitygov2.26.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chroma
github.com/alecthomas/chroma/v2

Highlight Go source code to terminal output

package main import ( "fmt" "github.com/alecthomas/chroma/v2/quick" ) func main() { err := quick.Highlight(os.Stdout, "package main", "go", "terminal16m", "monokai") if err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.26.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Meta
1
OpenAI (training)
1
Resources
alecthomas-chroma-v2 — go get alecthomas-chroma-v2 · libregistry