@comfit/wasm / HtmlOptions
Interface: HtmlOptions
Defined in: types.ts:81
Element classes and rainbow wrapping shared by all HTML style modes.
Extends
Properties
classPrefix?
optionalclassPrefix?:string
Defined in: types.ts:89
Prefix for token, rainbow, and line classes. Defaults to an empty string.
highlightedLines?
optionalhighlightedLines?: readonlynumber[]
Defined in: types.ts:30
One-based source lines to emphasize. Defaults to an empty list.
Inherited from
HighlightOptions.highlightedLines
lineTag?
optionallineTag?:string
Defined in: types.ts:85
Line tag name. Defaults to "span".
preClass?
optionalpreClass?:string
Defined in: types.ts:87
Optional class on the outer element, escaped as attribute text.
preTag?
optionalpreTag?:string
Defined in: types.ts:83
Outer tag name. Defaults to "pre".
rainbow?
optionalrainbow?:boolean
Defined in: types.ts:32
Collect bracket depths. Defaults to true.
Inherited from
rainbowColors?
optionalrainbowColors?:number
Defined in: types.ts:91
Wrap class/variable depths at this count. Zero preserves depth. Inline themes use their palettes.