block.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  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. }
  15. },
  16. "supports": {
  17. "anchor": true,
  18. "typography": {
  19. "fontSize": true,
  20. "lineHeight": true,
  21. "__experimentalFontStyle": true,
  22. "__experimentalFontWeight": true,
  23. "__experimentalLetterSpacing": true,
  24. "__experimentalTextTransform": true,
  25. "__experimentalDefaultControls": {
  26. "fontSize": true
  27. }
  28. },
  29. "spacing": {
  30. "margin": [ "top", "bottom" ],
  31. "padding": true
  32. },
  33. "__experimentalBorder": {
  34. "radius": true,
  35. "color": true,
  36. "width": true,
  37. "style": true,
  38. "__experimentalDefaultControls": {
  39. "width": true,
  40. "color": true
  41. }
  42. },
  43. "color": {
  44. "text": true,
  45. "background": true,
  46. "gradients": true,
  47. "__experimentalDefaultControls": {
  48. "background": true,
  49. "text": true
  50. }
  51. }
  52. },
  53. "style": "wp-block-code"
  54. }