added remaining relevant options - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 26d23f7f4becb2bbfa80d91ae9b27ffc76e13e3a
(DIR) parent e904ccffb62583a2d4f108879788c9a37a6faf72
(HTM) Author: Ben Thomas <github@bigredgiraffe.com>
Date: Mon, 7 Dec 2015 10:00:28 -0700
added remaining relevant options
Diffstat:
M helpers/pygments.go | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/helpers/pygments.go b/helpers/pygments.go
@@ -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 {