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`. | Code | optional | |||||||||
| text The code, kept exactly as written. | optional | ||||||||||
| attributes Code settings and parent-layout attributes. | 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
block/math: another verbatim-text block.
block/paragraph: rich text with annotations.
block/core: all built-in block types.
Blocks: the block model.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App