Registry / utility / zyedidia-highlight

zyedidia-highlight

JSON →
library0.0.0-20200217010119-291680feaca1gogounverified

A syntax highlighting library for Go.

go get github.com/zyedidia/highlight
INSTALL
IMPORT
SIG · ZYEDIDIA-HIGHLIGHT
Z
zyedidia-highlight
utilitygov0.0.0-20200217010119-291680feaca1
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.

highlight
github.com/zyedidia/highlight

Highlights Go source code.

package main import ( "fmt" "github.com/zyedidia/highlight" ) func main() { code := "package main\nfunc main() {}\n" h := highlight.NewHighlighter("go") tokens := h.HighlightString(code) fmt.Println(tokens) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200217010119-291680feaca1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
44
OpenAI (training)
1
Resources
zyedidia-highlight — go get zyedidia-highlight · libregistry