A pygments wrapper for golang
Run this in terminal to install the package
go get github.com/pksunkara/pygments
Use the following line in source file to import this package
import "github.com/pksunkara/pygments"pygments.Highlight("code", "lexer", "format", "encoding")pygments.Highlight("print \"Hello World!\"", "python", "html", "utf-8")pygments.Binary("/path/to/pygments/binary")Visit the docs on gopkgdoc
go test
If you like this project, please watch/star this and follow me
Here is a list of Contributors
- Improve speed and performance
I accept pull requests and guarantee a reply back within a day
MIT/X11
Report here. Guaranteed reply within a day.
Pavan Kumar Sunkara (pavan.sss1991@gmail.com)