All Projects → pksunkara → pygments

pksunkara / pygments

Licence: MIT license
A pygments wrapper for golang, Pygments is a syntax highlighter.

Programming Languages

go
31211 projects - #10 most used programming language

pygments

A pygments wrapper for golang

Importing

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"

Usage

Highlighting Code

pygments.Highlight("code", "lexer", "format", "encoding")
pygments.Highlight("print \"Hello World!\"", "python", "html", "utf-8")

Provide Custom Path

pygments.Binary("/path/to/pygments/binary")

Documentation

Visit the docs on gopkgdoc

Testing

go test

If you like this project, please watch/star this and follow me

Contributors

Here is a list of Contributors

TODO

  • Improve speed and performance

I accept pull requests and guarantee a reply back within a day

License

MIT/X11

Bug Reports

Report here. Guaranteed reply within a day.

Contact

Pavan Kumar Sunkara ([email protected])

Follow me on github, twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].