author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/code", |
18 | 5 |
"title": "Code", |
16 | 6 |
"category": "text", |
18 | 7 |
"description": "Display code snippets that respect your spacing and tabs.", |
8 |
"textdomain": "default", |
|
16 | 9 |
"attributes": { |
10 |
"content": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
11 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
12 |
"source": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
13 |
"selector": "code", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
14 |
"__unstablePreserveWhiteSpace": true |
16 | 15 |
} |
16 |
}, |
|
17 |
"supports": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
18 |
"align": [ "wide" ], |
16 | 19 |
"anchor": true, |
18 | 20 |
"typography": { |
19 | 21 |
"fontSize": true, |
22 |
"lineHeight": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
23 |
"__experimentalFontFamily": true, |
19 | 24 |
"__experimentalFontWeight": true, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
25 |
"__experimentalFontStyle": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
26 |
"__experimentalTextTransform": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
27 |
"__experimentalTextDecoration": true, |
19 | 28 |
"__experimentalLetterSpacing": true, |
29 |
"__experimentalDefaultControls": { |
|
30 |
"fontSize": true |
|
31 |
} |
|
32 |
}, |
|
33 |
"spacing": { |
|
34 |
"margin": [ "top", "bottom" ], |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
35 |
"padding": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
36 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
37 |
"margin": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
38 |
"padding": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
39 |
} |
19 | 40 |
}, |
41 |
"__experimentalBorder": { |
|
42 |
"radius": true, |
|
43 |
"color": true, |
|
44 |
"width": true, |
|
45 |
"style": true, |
|
46 |
"__experimentalDefaultControls": { |
|
47 |
"width": true, |
|
48 |
"color": true |
|
49 |
} |
|
50 |
}, |
|
51 |
"color": { |
|
52 |
"text": true, |
|
53 |
"background": true, |
|
54 |
"gradients": true, |
|
55 |
"__experimentalDefaultControls": { |
|
56 |
"background": true, |
|
57 |
"text": true |
|
58 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
59 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
60 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
61 |
"clientNavigation": true |
18 | 62 |
} |
63 |
}, |
|
64 |
"style": "wp-block-code" |
|
16 | 65 |
} |