go-rouge
Pure-Go syntax highlighting.
go-rouge is a pure-Go (CGO_ENABLED=0) syntax highlighter in the Rouge/Pygments tradition: a family of language lexers that tokenize source and emit highlighted HTML, dependency-light and ready for js/wasm.
Everything is pure Go (CGO_ENABLED=0), standard-library-first, and
cross-compiles to every 64-bit Go target. Licensed BSD-3-Clause.