highlight_manager.ts

Declarations
#

3 declarations

view source

HighlightManager
#

highlight_manager.ts view source

Manages highlights for a single element. Tracks ranges per element and only removes its own ranges when clearing.

element_ranges

type Map<string, Array<Range>>

constructor

type new (): HighlightManager

highlight_from_syntax_tokens

Highlight from syntax styler token stream.

type (element: Element, tokens: SyntaxTokenStream): void

element
type Element
tokens
returns void

clear_element_ranges

Clear only this element's ranges from highlights.

type (): void

returns void

destroy

type (): void

returns void

HighlightMode
#

supports_css_highlight_api
#

Depends on
#

Imported by
#