Documentation ¶
Overview ¶
Package highlightjs provides an incomplete wrapper for Highlight.js (https://github.com/isagalaev/highlight.js), a Javascript syntax highlighter
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HighlightResult ¶
type HighlightResult struct { Language string `js:"language"` Relevance int `js:"relevance"` Value string `js:"value"` // contains filtered or unexported fields }
HighlightResult represents the result of a highlighting
func Highlight ¶
func Highlight(lang string, source string, ignoreIllegals bool) *HighlightResult
Highlight is the core highlighting function. See documentation at http://highlightjs.readthedocs.io/en/latest/api.html#highlight-name-value-ignore-illegals-continuation
Click to show internal directories.
Click to hide internal directories.