rouge
Rouge/Pygments-class lexers that tokenize source and emit highlighted HTML.
Install
go get github.com/go-rouge/rouge
Requires Go 1.26.4 or newer. CGO_ENABLED=0.
Links
- Source: https://github.com/go-rouge/rouge
- API reference: https://pkg.go.dev/github.com/go-rouge/rouge
Note
See the module's README for full, up-to-date details.