Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
/ pygments Public archive

A pygments wrapper for golang, Pygments is a syntax highlighter.

License

Notifications You must be signed in to change notification settings

sunkarapk/pygments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (pavan.sss1991@gmail.com)

Follow me on github, twitter

About

A pygments wrapper for golang, Pygments is a syntax highlighter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages