grammar_markup.ts

Declarations
#

3 declarations

view source

add_grammar_markup
#

grammar_markup_add_attribute
#

grammar_markup.ts view source

(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_styler

the SyntaxStyler instance to modify

attr_name

the name of the attribute that contains the inlined language, treated as case insensitive

type string

lang

the language key

type string

returns

void

grammar_markup_add_inlined
#

grammar_markup.ts view source

(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_styler

the SyntaxStyler instance to modify

tag_name

the name of the tag that contains the inlined language, treated as case insensitive

type string

lang

the language key

type string

inside_lang

the language to insert into, defaults to 'markup'

type string
default 'markup'

returns

void

Imported by
#