Skip to content

x86kernel/htmlcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

htmlcolor

Html syntax highlighter for Go

Installation

go get github.com/x86kernel/htmlcolor

Example Code

package main

import (
        "bytes"
        "fmt"
        
        "github.com/x86kernel/htmlcolor"
)

func main() {
        htmlformatter := htmlcolor.NewFormatter()

        testhtml := []byte("<html>\n<head>\n<body>\n</body>\n</head>\n</html>")

        buffer := bytes.NewBuffer(make([]byte, len(testhtml)))
        htmlformatter.Format(buffer, testhtml)

        fmt.Println(buffer)
}

About

Html syntax highlighter for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages