diff options
author | Ahsanul Haque <ahsanul@gmail.com> | 2014-12-12 08:57:22 +0600 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-12-18 22:18:36 -0500 |
commit | 14bce119b60ee6d78a92bfe9361328156d310e57 (patch) | |
tree | d62c04e2e85020876e003bb0cbf84b8f410ea361 /helpers/pygments.go | |
parent | 7436829b82449fff6da85e82aac0e9b353b24172 (diff) |
Commented helpers package
Diffstat (limited to 'helpers/pygments.go')
-rw-r--r-- | helpers/pygments.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers/pygments.go b/helpers/pygments.go index bb7790533..b31c834c6 100644 --- a/helpers/pygments.go +++ b/helpers/pygments.go @@ -25,6 +25,7 @@ import ( const pygmentsBin = "pygmentize" +//HasPygments checks to see if Pygments is installed and available on the system. func HasPygments() bool { if _, err := exec.LookPath(pygmentsBin); err != nil { return false @@ -32,6 +33,7 @@ func HasPygments() bool { return true } +//Highlight takes some code and returns highlighted code. func Highlight(code string, lexer string) string { if !HasPygments() { |