mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-27 09:41:45 +00:00
Have pygments use CSS classes in output
This commit is contained in:
parent
dc068ccb87
commit
6d61e4f403
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ func Highlight(code string, lexer string) string {
|
|||
var out bytes.Buffer
|
||||
var stderr bytes.Buffer
|
||||
|
||||
cmd := exec.Command(pygmentsBin, "-l"+lexer, "-fhtml", "-O style=monokai,noclasses=true,encoding=utf-8")
|
||||
cmd := exec.Command(pygmentsBin, "-l"+lexer, "-fhtml", "-O style=pastie,encoding=utf-8")
|
||||
cmd.Stdin = strings.NewReader(code)
|
||||
cmd.Stdout = &out
|
||||
cmd.Stderr = &stderr
|
||||
|
|
Loading…
Reference in a new issue