Base type for code nodes e.g. `CodeBlock`, `CodeExpression`.


Name @id Type Description Inherited from
text schema:text string The text of the code. Code
format schema:encodingFormat string Media type, typically expressed using a MIME format, of the code. See note 1. Code
id schema:id string The identifier for this item. Entity
meta stencila:meta object Metadata associated with this item. Entity
programmingLanguage schema:programmingLanguage string The programming language of the code. Code


  1. format : This property allows the differentiation of formats using the same programming language or variants of a programming language. An example is using programmingLanguage “json” and encodingFormat “application/ld+json” for JSON-LD code examples.

Available as


This documentation was generated from Code.schema.yaml.