Code Block
A block of verbatim text, optionally tagged with a programming language for highlighting.

Extends

id
The block's permanent identity inside its document.
inherited
revision
Output only: CID of the last Change that modified this block.
optional · inherited
type
Block type tag, always `Code`.
Codeoptional
text
The code, kept exactly as written.
optional
attributes
Code settings and parent-layout attributes.
optional
childrenType
How this block lays out its children — a children type such as `Unordered` or `Grid`.
optional
columnCount
Number of columns the children occupy when `childrenType` is `Grid`.
optional
textAlignment
Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`.
optional
language
Programming language used for syntax highlighting.
optional

other fields:

A code block holds verbatim text. text is kept exactly as written and has no annotations. language names the language for syntax highlighting. childrenType and columnCount are the usual parent-layout attributes, see children type.

See also

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0

Connections show where other documents or comments link to this document.

Related documents

Loading connections…