[ 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          }
  16      },
  17      "supports": {
  18          "align": [ "wide" ],
  19          "anchor": true,
  20          "typography": {
  21              "fontSize": true,
  22              "lineHeight": true,
  23              "__experimentalFontFamily": true,
  24              "__experimentalFontWeight": true,
  25              "__experimentalFontStyle": true,
  26              "__experimentalTextTransform": true,
  27              "__experimentalTextDecoration": true,
  28              "__experimentalLetterSpacing": true,
  29              "__experimentalDefaultControls": {
  30                  "fontSize": true
  31              }
  32          },
  33          "spacing": {
  34              "margin": [ "top", "bottom" ],
  35              "padding": true,
  36              "__experimentalDefaultControls": {
  37                  "margin": false,
  38                  "padding": false
  39              }
  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              }
  59          },
  60          "interactivity": {
  61              "clientNavigation": true
  62          }
  63      },
  64      "style": "wp-block-code"
  65  }


Generated : Sun May 12 08:20:02 2024 Cross-referenced by PHPXref