mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
added remaining relevant options
This commit is contained in:
parent
e904ccffb6
commit
26d23f7f4b
1 changed files with 17 additions and 7 deletions
|
@ -133,17 +133,27 @@ func Highlight(code, lang, optsStr string) string {
|
||||||
var pygmentsKeywords = make(map[string]bool)
|
var pygmentsKeywords = make(map[string]bool)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
pygmentsKeywords["style"] = true
|
|
||||||
pygmentsKeywords["encoding"] = true
|
pygmentsKeywords["encoding"] = true
|
||||||
pygmentsKeywords["noclasses"] = true
|
pygmentsKeywords["outencoding"] = true
|
||||||
pygmentsKeywords["hl_lines"] = true
|
pygmentsKeywords["nowrap"] = true
|
||||||
pygmentsKeywords["linenos"] = true
|
pygmentsKeywords["full"] = true
|
||||||
pygmentsKeywords["classprefix"] = true
|
|
||||||
pygmentsKeywords["startinline"] = true
|
|
||||||
pygmentsKeywords["title"] = true
|
pygmentsKeywords["title"] = true
|
||||||
pygmentsKeywords["anchorlinenos"] = true
|
pygmentsKeywords["style"] = true
|
||||||
|
pygmentsKeywords["noclasses"] = true
|
||||||
|
pygmentsKeywords["classprefix"] = 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["lineanchors"] = true
|
||||||
pygmentsKeywords["linespans"] = true
|
pygmentsKeywords["linespans"] = true
|
||||||
|
pygmentsKeywords["anchorlinenos"] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseOptions(options map[string]string, in string) error {
|
func parseOptions(options map[string]string, in string) error {
|
||||||
|
|
Loading…
Reference in a new issue