Skip to content

@comfit/wasm / HtmlOptions

Interface: HtmlOptions

Defined in: types.ts:81

Element classes and rainbow wrapping shared by all HTML style modes.

Extends

Properties

classPrefix?

optional classPrefix?: string

Defined in: types.ts:89

Prefix for token, rainbow, and line classes. Defaults to an empty string.


highlightedLines?

optional highlightedLines?: readonly number[]

Defined in: types.ts:30

One-based source lines to emphasize. Defaults to an empty list.

Inherited from

HighlightOptions.highlightedLines


lineTag?

optional lineTag?: string

Defined in: types.ts:85

Line tag name. Defaults to "span".


preClass?

optional preClass?: string

Defined in: types.ts:87

Optional class on the outer element, escaped as attribute text.


preTag?

optional preTag?: string

Defined in: types.ts:83

Outer tag name. Defaults to "pre".


rainbow?

optional rainbow?: boolean

Defined in: types.ts:32

Collect bracket depths. Defaults to true.

Inherited from

HighlightOptions.rainbow


rainbowColors?

optional rainbowColors?: number

Defined in: types.ts:91

Wrap class/variable depths at this count. Zero preserves depth. Inline themes use their palettes.