Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CJSON chroma.Formatter
Functions ¶
func RegisterCJson ¶
func RegisterCJson()
This is a slightly modified version of github.com/alecthomas/chroma/blob/master/formatters/json.go
Types ¶
type ColoredElement ¶
type ColoredElement struct { Content string `"json":"content"` Whitespace bool `"json":"whitespace"` Comment bool `"json":"comment"` Red uint8 `"json":"red"` Green uint8 `"json":"green"` Blue uint8 `"json":"blue"` Underline bool `"json":"underline"` Italic bool `"json":"italic"` Bold bool `"json":"bold"` }
func FromFile ¶
func FromFile(path string, style string) []*ColoredElement
Click to show internal directories.
Click to hide internal directories.