sempdf v1.9.1Interfaces
Interface: TemplateCodeBlock
sempdf / TemplateCodeBlock
Defined in: src/types.ts:1846
Template block for rendering a preformatted code block: monospaced text with indentation and hard line breaks preserved, drawn on a background band that repeats on each page or column the block spans.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
class? | readonly | ClassNameInput | Stylesheet class name(s) applied beneath inline options. | src/types.ts:1855 |
code | readonly | string | Source text to render. Tabs are expanded; \r\n and \r are normalized. | src/types.ts:1849 |
keepWithNext? | readonly | boolean | Whether this block should stay on the same page as the following block when possible. | src/types.ts:1857 |
language? | readonly | string | Optional language label, recorded on the structure element as its expansion text. | src/types.ts:1851 |
options? | readonly | FlowCodeOptions | Options that control this block. | src/types.ts:1853 |
type | readonly | "code" | - | src/types.ts:1847 |