(syntax_styler: SyntaxStyler): void Based on Prism (https://github.com/PrismJS/prism) by Lea Verou (https://lea.verou.me/)
MIT license
syntax_styler
type SyntaxStyler
returns
void see also
LICENSE
3 declarations
(syntax_styler: SyntaxStyler): void Based on Prism (https://github.com/PrismJS/prism) by Lea Verou (https://lea.verou.me/)
MIT license
syntax_stylervoid LICENSE
(syntax_styler: SyntaxStyler, attr_name: string, lang: string): void Adds a pattern to style languages embedded in HTML attributes.
An example of an inlined language is CSS with style attributes.
syntax_stylerthe SyntaxStyler instance to modify
attr_namethe name of the attribute that contains the inlined language, treated as case insensitive
stringlangthe language key
stringvoid (syntax_styler: SyntaxStyler, tag_name: string, lang: string, inside_lang?: string): void Adds an inlined language to markup.
An example of an inlined language is CSS with <style> tags.
syntax_stylerthe SyntaxStyler instance to modify
tag_namethe name of the tag that contains the inlined language, treated as case insensitive
stringlangthe language key
stringinside_langthe language to insert into, defaults to 'markup'
string'markup'void