# htmlcolor Html syntax highlighter for Go ## Installation ``` go get github.com/x86kernel/htmlcolor ``` ## Example Code ``` go package main import ( "bytes" "fmt" "github.com/x86kernel/htmlcolor" ) func main() { htmlformatter := htmlcolor.NewFormatter() testhtml := []byte("\n
\n\n\n\n") buffer := bytes.NewBuffer(make([]byte, len(testhtml))) htmlformatter.Format(buffer, testhtml) fmt.Println(buffer) } ```