Versions in this module Expand all Collapse all v0 v0.1.0 May 21, 2022 Changes in this version + func AddLanguage(name string, loader func() ([]byte, error)) + func SetLoader(loader func(name string) ([]byte, error)) + type Highlighter struct + func LoadHighlighter(lang string, data []byte, memo bool) (*Highlighter, error) + func LoadHighlighterBuiltin(name string, memo bool) (*Highlighter, error) + func (h *Highlighter) HighlightFunc(r io.ReaderAt, tbl memo.Table, draw func(text []byte, group string), ...) + func (h *Highlighter) HighlightMatches(r io.ReaderAt, tbl memo.Table, i *vm.Interval) *Matches + type Matches struct + func (m *Matches) Group(idx int) string + func (m *Matches) InRange(p int) bool