[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/code/ -> block.json (source)

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


Generated : Sat Oct 25 08:20:05 2025 Cross-referenced by PHPXref