/
block.json
77 lines (77 loc) · 1.47 KB
/
block.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"apiVersion": 2,
"name": "cblocks/coder-block",
"title": "Code Editor",
"icon": "editor-code",
"category": "scripts-blocks",
"description": "A simple way to share and evaluate code with Gutenberg.",
"textdomain": "coder-block",
"version": "1.0.6",
"keywords": [
"php",
"code",
"editor",
"javascript",
"css",
"js"
],
"attributes": {
"mode": {
"type": "string",
"default": "php"
},
"theme": {
"type": "string",
"default": "twilight"
},
"fontsize": {
"type": "string",
"default": "14"
},
"lines": {
"type": "string",
"default": "Infinity"
},
"code": {
"type": "string",
"source": "text",
"selector": "pre",
"default": "<?php echo 'hello world!'; ?>"
},
"showLinesNumber": {
"type": "boolean",
"default": true
},
"autocompletion": {
"type": "boolean",
"default": true
},
"evaluate": {
"type": "boolean",
"default": false
},
"showSource": {
"type": "boolean",
"default": true
},
"doShortCodes": {
"type": "boolean",
"default": false
},
"useACE": {
"type": "boolean",
"default": true
}
},
"supports": {
"html": false,
"anchor": true
},
"example": {
"attributes": {
"code": "<?php echo 'Hello World!'; ?>"
}
},
"editorStyle": "coder-block-editor-style",
"editorScript": "coder-block-editor-script"
}