Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDarkStyle = styles.Monokai DefaultLightStyle = styles.SolarizedLight )
Styles used if the user hasn't set a style in the config.
View Source
var Style = prefs.NewString("", prefs.StringMeta{ Name: "Code Highlight Style", Section: "Text", Description: "For reference, see the " + `<a href="https://xyproto.github.io/splash/docs/all.html">Chroma Style Gallery</a>.`, Placeholder: "Leave blank for default", Validate: func(style string) error { return nil }, })
Functions ¶
func ChangeStyle ¶
ChangeStyle changes the global highlighter style. It is a helper function for the Style variable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.