tui.highlight
tui.md.highlight LANG FN
Registers the highlighter of a code fence language.
Parameters
LANG: the fence language, matched case-insensitively.FN: the function, called asFN LINE. It setsTUI_MD_HLtoLINEwith SGR spans; the characters are unchanged. An emptyFNunregisters the language.
Notes
- Built in:
bash(alsosh,shell,zsh) andjson, using the classeshl_keyword,hl_string,hl_comment,hl_numberandhl_var.
Example
tui.md.highlight ini my_ini_highlight
