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 an pattern to style languages embedded in HTML attributes.

An example of an inlined language is CSS with style attributes.

syntax_styler

attr_name

- The name of the tag that contains the inlined language. This name will be 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

tag_name

- The name of the tag that contains the inlined language. This name will be treated as case insensitive.

type string

lang

- The language key.

type string

inside_lang

type string
default 'markup'

returns

void

Imported by
#