pygments

package module
Version: v0.0.0-...-5b0b424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2016 License: MIT Imports: 5 Imported by: 0

README

pygments Build Status

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", "full,", "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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary(path string)

func Highlight

func Highlight(code string, lexer string, format string, options string, enc string) (string, error)

func Which

func Which() string

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL