themes-cyberpunk/schemas/code_neon.schema.json
Alex Dunmow 313ebaf296 initial: theme plugin cyberpunk
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/cyberpunk.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:25 +08:00

31 lines
931 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Code Block",
"description": "Server-rendered code block with language label and optional copy button.",
"type": "object",
"properties": {
"language": {
"type": "string",
"title": "Language",
"description": "Source language used as the chroma-style class and figcaption label",
"x-editor": "select",
"enum": ["text", "bash", "shell", "javascript", "typescript", "go", "json", "html", "css", "yaml", "sql", "rust", "python"],
"default": "text"
},
"code": {
"type": "string",
"title": "Code",
"description": "Block contents",
"x-editor": "textarea"
},
"copy": {
"type": "string",
"title": "Copy button",
"description": "Show a copy-to-clipboard button in the caption",
"x-editor": "select",
"enum": ["on", "off"],
"default": "on"
}
}
}