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.