PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / code-comparison / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/code-comparison/block.json

147 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "blockenberg/code-comparison",
5 "title": "Code Comparison",
6 "category": "bkbg-dev",
7 "icon": "editor-code",
8 "description": "Side-by-side code comparison block with syntax highlighting, diff markers, labeled panels, copy buttons, line numbers, and a draggable split divider.",
9 "keywords": [
10 "code",
11 "comparison",
12 "diff",
13 "before",
14 "after",
15 "syntax",
16 "highlighting",
17 "programming"
18 ],
19 "textdomain": "blockenberg",
20 "editorScript": "bkbg-code-comparison-editor",
21 "style": "bkbg-code-comparison-style",
22 "viewScript": "bkbg-code-comparison-frontend",
23 "supports": {
24 "html": false,
25 "anchor": true,
26 "className": true,
27 "align": [
28 "wide",
29 "full"
30 ]
31 },
32 "attributes": {
33 "leftCode": {
34 "type": "string",
35 "default": "function greet(name) {\n return 'Hello, ' + name;\n}\n\n// Call the function\nconst msg = greet('World');\nconsole.log(msg);"
36 },
37 "rightCode": {
38 "type": "string",
39 "default": "const greet = (name) => {\n return `Hello, ${name}!`;\n};\n\n// Call the function\nconst msg = greet('World');\nconsole.log(msg);"
40 },
41 "leftLabel": {
42 "type": "string",
43 "default": "Before"
44 },
45 "rightLabel": {
46 "type": "string",
47 "default": "After"
48 },
49 "leftLang": {
50 "type": "string",
51 "default": "javascript"
52 },
53 "rightLang": {
54 "type": "string",
55 "default": "javascript"
56 },
57 "diffLines": {
58 "type": "string",
59 "default": ""
60 },
61 "showDiffMarkers": {
62 "type": "boolean",
63 "default": true
64 },
65 "showLineNumbers": {
66 "type": "boolean",
67 "default": true
68 },
69 "showCopyButtons": {
70 "type": "boolean",
71 "default": true
72 },
73 "showLanguageBadge": {
74 "type": "boolean",
75 "default": true
76 },
77 "draggableSplit": {
78 "type": "boolean",
79 "default": true
80 },
81 "splitRatio": {
82 "type": "number",
83 "default": 50
84 },
85 "theme": {
86 "type": "string",
87 "default": "dark"
88 },
89 "fontSize": {
90 "type": "number",
91 "default": 13
92 },
93 "typoCode": {
94 "type": "object",
95 "default": {}
96 },
97 "maxHeight": {
98 "type": "number",
99 "default": 0
100 },
101 "wrapLines": {
102 "type": "boolean",
103 "default": false
104 },
105 "borderRadius": {
106 "type": "number",
107 "default": 12
108 },
109 "bgLeft": {
110 "type": "string",
111 "default": "#1e1e2e"
112 },
113 "bgRight": {
114 "type": "string",
115 "default": "#1e2e1e"
116 },
117 "headerBgLeft": {
118 "type": "string",
119 "default": "#ff6b6b"
120 },
121 "headerBgRight": {
122 "type": "string",
123 "default": "#6bcb77"
124 },
125 "headerColor": {
126 "type": "string",
127 "default": "#ffffff"
128 },
129 "codeColor": {
130 "type": "string",
131 "default": "#cdd6f4"
132 },
133 "lineNumColor": {
134 "type": "string",
135 "default": "#6c7086"
136 },
137 "diffAddBg": {
138 "type": "string",
139 "default": "rgba(107,203,119,0.15)"
140 },
141 "diffRemBg": {
142 "type": "string",
143 "default": "rgba(255,107,107,0.15)"
144 }
145 }
146 }
147