Preformatted


目录


Add text that respects your spacing and tabs, and also allows styling.

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
content rich-text — Source: rich-text. Selector: pre. Role: content

Supports

Defined via the supports property in block.json.

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:core/preformatted -->
<pre class="wp-block-preformatted">Some <em>preformatted</em> text...<br>And more!</pre>
<!-- /wp:core/preformatted -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:31:21 UTC
由 壳壳虫 更新于 2026-10-31 18:31:22 UTC