(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 an pattern to style languages embedded in HTML attributes.
An example of an inlined language is CSS with style attributes.
syntax_stylerattr_name- The name of the tag that contains the inlined language. This name will be treated as case insensitive.
stringlang- The 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_stylertag_name- The name of the tag that contains the inlined language. This name will be treated as case insensitive.
stringlang- The language key.
stringinside_langstring'markup'void