| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "betterdocs/code-snippet", |
| 5 |
"title": "BetterDocs Code Snippet", |
| 6 |
"category": "betterdocs", |
| 7 |
"description": "Insert stylized, language-aware code blocks with copy-to-clipboard functionality.", |
| 8 |
"keywords": [ |
| 9 |
"code", |
| 10 |
"snippet", |
| 11 |
"syntax", |
| 12 |
"highlight", |
| 13 |
"programming", |
| 14 |
"betterdocs" |
| 15 |
], |
| 16 |
"textdomain": "betterdocs", |
| 17 |
"attributes": { |
| 18 |
"blockId": { |
| 19 |
"type": "string" |
| 20 |
}, |
| 21 |
"blockMeta": { |
| 22 |
"type": "object" |
| 23 |
}, |
| 24 |
"resOption": { |
| 25 |
"type": "string", |
| 26 |
"default": "Desktop" |
| 27 |
}, |
| 28 |
"codeContent": { |
| 29 |
"type": "string", |
| 30 |
"default": "" |
| 31 |
}, |
| 32 |
"language": { |
| 33 |
"type": "string", |
| 34 |
"default": "javascript" |
| 35 |
}, |
| 36 |
"showLanguageLabel": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"showCopyButton": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"showLineNumbers": { |
| 45 |
"type": "boolean", |
| 46 |
"default": false |
| 47 |
}, |
| 48 |
"theme": { |
| 49 |
"type": "string", |
| 50 |
"default": "light" |
| 51 |
} |
| 52 |
}, |
| 53 |
"supports": { |
| 54 |
"align": [ |
| 55 |
"wide", |
| 56 |
"full" |
| 57 |
], |
| 58 |
"html": false |
| 59 |
} |
| 60 |
} |
| 61 |
|