blog.pckt.block.codeBlock
Preformatted code block with optional syntax highlighting.
Details · object
| Kind | object |
|---|---|
| Authority | block.pckt.blog |
| Indexed |
Checks
Validunlimited-stringdefs.main.properties.plaintextNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"properties": {
"language": {
"description": "Programming language for syntax highlighting",
"maxLength": 50,
"type": "string"
},
"plaintext": {
"description": "The code content",
"type": "string"
}
},
"required": [
"plaintext"
],
"type": "object"
}
},
"description": "Preformatted code block with optional syntax highlighting.",
"id": "blog.pckt.block.codeBlock",
"lexicon": 1
}