sempdf
sempdf v1.9.1Interfaces

Interface: TemplateCodeBlock

sempdf v1.9.1


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

PropertyModifierTypeDescriptionDefined in
class?readonlyClassNameInputStylesheet class name(s) applied beneath inline options.src/types.ts:1855
codereadonlystringSource text to render. Tabs are expanded; \r\n and \r are normalized.src/types.ts:1849
keepWithNext?readonlybooleanWhether this block should stay on the same page as the following block when possible.src/types.ts:1857
language?readonlystringOptional language label, recorded on the structure element as its expansion text.src/types.ts:1851
options?readonlyFlowCodeOptionsOptions that control this block.src/types.ts:1853
typereadonly"code"-src/types.ts:1847

On this page