added remaining relevant options
authorBen Thomas <github@bigredgiraffe.com>
Mon, 7 Dec 2015 17:00:28 +0000 (10:00 -0700)
committerSteve Francia <steve.francia@gmail.com>
Mon, 4 Jan 2016 16:52:40 +0000 (11:52 -0500)
helpers/pygments.go

index b0e11cb75889c76f1975f2ce4d32b2a9230960fd..b6a325000cc9f9acd72d4bf5d9d32211248eba5a 100644 (file)
@@ -133,17 +133,27 @@ func Highlight(code, lang, optsStr string) string {
 var pygmentsKeywords = make(map[string]bool)
 
 func init() {
-       pygmentsKeywords["style"] = true
        pygmentsKeywords["encoding"] = true
+       pygmentsKeywords["outencoding"] = true
+       pygmentsKeywords["nowrap"] = true
+       pygmentsKeywords["full"] = true
+       pygmentsKeywords["title"] = true
+       pygmentsKeywords["style"] = true
        pygmentsKeywords["noclasses"] = true
-       pygmentsKeywords["hl_lines"] = true
-       pygmentsKeywords["linenos"] = true
        pygmentsKeywords["classprefix"] = true
-       pygmentsKeywords["startinline"] = true
-       pygmentsKeywords["title"] = true
-       pygmentsKeywords["anchorlinenos"] = true
+       pygmentsKeywords["cssclass"] = true
+       pygmentsKeywords["cssstyles"] = true
+       pygmentsKeywords["prestyles"] = true
+       pygmentsKeywords["linenos"] = true
+       pygmentsKeywords["hl_lines"] = true
+       pygmentsKeywords["linenostart"] = true
+       pygmentsKeywords["linenostep"] = true
+       pygmentsKeywords["linenospecial"] = true
+       pygmentsKeywords["nobackground"] = true
+       pygmentsKeywords["lineseparator"] = true
        pygmentsKeywords["lineanchors"] = true
        pygmentsKeywords["linespans"] = true
+       pygmentsKeywords["anchorlinenos"] = true
 }
 
 func parseOptions(options map[string]string, in string) error {