Skip to content

@comfit/node / HighlightConfig

Class: HighlightConfig

Defined in: index.d.ts:24

Options for token output and ANSI rendering. Line numbers are one-based.

Constructors

Constructor

new HighlightConfig(): HighlightConfig

Defined in: index.d.ts:30

Create highlighting options with bracket-depth collection enabled.

Returns

HighlightConfig

Properties

highlightedLines

highlightedLines: number[]

Defined in: index.d.ts:26

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


rainbow

rainbow: boolean

Defined in: index.d.ts:28

Collect bracket depths. Defaults to true.