| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 2, |
| 4 |
"name": "kevinbatdorf/code-block-pro", |
| 5 |
"version": "1.2.0", |
| 6 |
"title": "Code Block Pro", |
| 7 |
"category": "common", |
| 8 |
"description": "Code highlighting powered by the VS Code engine", |
| 9 |
"attributes": { |
| 10 |
"code": { |
| 11 |
"type": "string" |
| 12 |
}, |
| 13 |
"codeHTML": { |
| 14 |
"type": "string" |
| 15 |
}, |
| 16 |
"language": { |
| 17 |
"type": "string" |
| 18 |
}, |
| 19 |
"theme": { |
| 20 |
"type": "string" |
| 21 |
}, |
| 22 |
"align": { |
| 23 |
"type": "string" |
| 24 |
}, |
| 25 |
"bgColor": { |
| 26 |
"type": "string", |
| 27 |
"default": "#282a37" |
| 28 |
}, |
| 29 |
"textColor": { |
| 30 |
"type": "string", |
| 31 |
"default": "#f8f8f2" |
| 32 |
}, |
| 33 |
"fontSize": { |
| 34 |
"type": "string" |
| 35 |
}, |
| 36 |
"fontFamily": { |
| 37 |
"type": "string" |
| 38 |
}, |
| 39 |
"lineHeight": { |
| 40 |
"type": "string" |
| 41 |
}, |
| 42 |
"lineNumbers": { |
| 43 |
"type": "boolean" |
| 44 |
}, |
| 45 |
"clampFonts": { |
| 46 |
"type": "boolean", |
| 47 |
"default": false |
| 48 |
}, |
| 49 |
"headerType": { |
| 50 |
"type": "string" |
| 51 |
}, |
| 52 |
"headerString": { |
| 53 |
"type": "string" |
| 54 |
}, |
| 55 |
"disablePadding": { |
| 56 |
"type": "boolean", |
| 57 |
"default": false |
| 58 |
}, |
| 59 |
"startingLineNumber": { |
| 60 |
"type": "number", |
| 61 |
"default": 1 |
| 62 |
}, |
| 63 |
"lineNumbersWidth": { |
| 64 |
"type": "number" |
| 65 |
}, |
| 66 |
"frame": { |
| 67 |
"type": "boolean" |
| 68 |
}, |
| 69 |
"renderType": { |
| 70 |
"type": "string", |
| 71 |
"default": "code" |
| 72 |
}, |
| 73 |
"label": { |
| 74 |
"type": "string", |
| 75 |
"default": "" |
| 76 |
}, |
| 77 |
"copyButton": { |
| 78 |
"type": "boolean" |
| 79 |
} |
| 80 |
}, |
| 81 |
"supports": { |
| 82 |
"html": false, |
| 83 |
"align": [ |
| 84 |
"wide", |
| 85 |
"full" |
| 86 |
] |
| 87 |
}, |
| 88 |
"textdomain": "code-block-pro", |
| 89 |
"editorScript": "file:./index.js", |
| 90 |
"editorStyle": "file:./index.css", |
| 91 |
"style": "file:./style-index.css", |
| 92 |
"viewScript": "file:./front/front.js" |
| 93 |
} |