Skip to content

PrismCodeBlock

PrismCodeBlock = object

Defined in: client/code-block.ts:7

readonly code: string

Defined in: client/code-block.ts:18

The code of the code block.


readonly container: HTMLPreElement

Defined in: client/code-block.ts:9

Outermost element of the code block.


readonly language: string

Defined in: client/code-block.ts:20

The language of the code block.


readonly lines: HTMLCollectionOf<HTMLDivElement>

Defined in: client/code-block.ts:16

Collection containing the overlays as the first element. The rest of the elements are the code lines. This means the first line starts at index 1.


readonly wrapper: HTMLElement

Defined in: client/code-block.ts:11

<code> element wrapping the lines and overlays.