You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.3 KiB

1 year ago
  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": "string",
  12. "source": "html",
  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. },
  61. "style": "wp-block-code"
  62. }