sevki.org/sandman

go get sevki.org/sandman

Package sandman implements highlights code using pygments over a python bridge using github.com/sbinet/go-python. If go-python doesn't compile correctly try

$ cd $GOPATH/src/sevki.org/sandman/
$ make

Index

Package Files

sandman.go

func Highlight

func Highlight(code string, lexer string, linenos bool) string

Highlight higlights the given code snippet with the given lexer name. Adds line numbers if it linenos is true. List of available lexers are: https://sevki.co/3kk2rv

Subdirectories