[ 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          "background": {
  22              "backgroundImage": true,
  23              "backgroundSize": true,
  24              "gradient": true,
  25              "__experimentalDefaultControls": {
  26                  "backgroundImage": true,
  27                  "gradient": true
  28              }
  29          },
  30          "dimensions": {
  31              "minHeight": true,
  32              "minWidth": true
  33          },
  34          "typography": {
  35              "fontSize": true,
  36              "lineHeight": true,
  37              "__experimentalFontFamily": true,
  38              "__experimentalFontWeight": true,
  39              "__experimentalFontStyle": true,
  40              "__experimentalTextTransform": true,
  41              "__experimentalTextDecoration": true,
  42              "__experimentalLetterSpacing": true,
  43              "__experimentalDefaultControls": {
  44                  "fontSize": true
  45              }
  46          },
  47          "spacing": {
  48              "margin": [ "top", "bottom" ],
  49              "padding": true,
  50              "__experimentalDefaultControls": {
  51                  "margin": false,
  52                  "padding": false
  53              }
  54          },
  55          "__experimentalBorder": {
  56              "radius": true,
  57              "color": true,
  58              "width": true,
  59              "style": true,
  60              "__experimentalDefaultControls": {
  61                  "width": true,
  62                  "color": true
  63              }
  64          },
  65          "color": {
  66              "text": true,
  67              "background": true,
  68              "gradients": true,
  69              "__experimentalDefaultControls": {
  70                  "background": true,
  71                  "text": true
  72              }
  73          },
  74          "shadow": true,
  75          "interactivity": {
  76              "clientNavigation": true
  77          }
  78      },
  79      "style": "wp-block-code"
  80  }


Generated : Sun Oct 25 08:20:35 2026 Cross-referenced by PHPXref