Code
Base type for code nodes e.g. `CodeBlock`, `CodeExpression`.
Name | @id | Type | Description | Inherited from |
---|---|---|---|---|
text (required) | schema:text | string |
The text of the code. | Code |
type (required) | schema:type | enum{ Code , CodeBlock , CodeChunk ,
CodeExpression , CodeFragment } |
The name of the type. | Entity |
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 |
meta | stencila:meta | object |
Metadata associated with this item. | Entity |
programmingLanguage | schema:programmingLanguage | string |
The programming language of the code. | Code |
Parent: Entity
Descendants: CodeBlock, CodeChunk, CodeExpression, CodeFragment
As: JSON-LD JSON-Schema
Note: This documentation was
autogenerated from Code.schema.yaml
. Please
help improve these docs (and show how we humans 💁 can do better than bots 🤖!) by creating a Markdown documentation
file🙏