CodeBlock

A code block.

@id: stencila:CodeBlock

Parent: Code

Descendants: CodeChunk

Properties

Name @id Type Description Inherited from
text (required) schema:text string The text of the code. Code
type (required) schema:type enum{CodeBlock, CodeChunk} The name of the type. Entity
exportFrom stencila:exportFrom string A compilation directive giving the name of the variable to export into the content of the code block. CodeBlock
format schema:encodingFormat string Media type, typically expressed using a MIME format, of the code. Code
id schema:id string The identifier for this item. Entity
importTo stencila:importTo string A compilation directive giving the name of the variable to import the content of the code block as. CodeBlock
meta stencila:meta object Metadata associated with this item. Entity
programmingLanguage schema:programmingLanguage string The programming language of the code. Code

Note: This documentation was autogenerated from CodeBlock.schema.yaml. Please help improve these docs (and show how we humans 💁 can do better than bots 🤖!) by creating a Markdown documentation file🙏