Title: ACE HTML Block
Author: willdelphia
Published: <strong>2019 年 2 月 6 日</strong>
Last modified: 2019 年 2 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/ace-html-block/assets/icon.svg?rev=2025630)

# ACE HTML Block

 作者：[willdelphia](https://profiles.wordpress.org/willdelphia/)

[下载](https://downloads.wordpress.org/plugin/ace-html-block.zip)

 * [详情](https://cn.wordpress.org/plugins/ace-html-block/#description)
 * [评价](https://cn.wordpress.org/plugins/ace-html-block/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/ace-html-block/#developers)

 [支持](https://wordpress.org/support/plugin/ace-html-block/)

## 描述

Registers a raw html block which uses the ACE Editor. Features include syntax highligting,
line numbers, indentation, and HTML validation.

Any HTML markup included in your block will be interpreted and rendered on your 
user-facing page or post just like the core “Custom HTML” block. This plugin is 
not for embedding pretty markup on your front-end site, rather it is for those developers
that need to include raw HTML in their pages or posts and want to improve the readability
of their HTML snippets and have a better in-browser code editing experience.

### To Use:

Create a new block in the editor and look for “ACE HTML Block” in the Formatting
section. It has a heart icon.

### Note on block transforms:

There (hopefully) may come a time in the future when WordPress introduces native
syntax highlighting on core “Custom HTML” blocks. This block is configured to transform
to (and from) the core HTML block so the transition away from this plugin will be
easy if you ever want to disable it. To transform this block click on the heart 
icon in the upper left corner of the block and select “Custom HTML” from the dropdown
menu.

### Thanks:

Under the hood it uses [react-ace](https://github.com/securingsincity/react-ace).

## 屏幕截图

[⌊Take a look at those colors!⌉⌊Take a look at those colors!⌉[

Take a look at those colors!

## 区块

该插件提供了 1 个区块.

 *   ACE HTML Block

## 评价

![](https://secure.gravatar.com/avatar/57c407d63539cf8386224b82290fa4f8823ad527bd4fa2c78ba346e08691c951?
s=60&d=retro&r=g)

### 󠀁[It’s ace!](https://wordpress.org/support/topic/its-ace/)󠁿

 [nexuz6](https://profiles.wordpress.org/nexuz6/) 2021 年 5 月 18 日

A fantastic replacement for the crappy Custom HTML block 🙂

![](https://secure.gravatar.com/avatar/0a7e47b3abb0f0db90b2aa50435d82ed4955d9a5a484caf6338b06300f877237?
s=60&d=retro&r=g)

### 󠀁[GOOD Plugin, Simple, Easy, & Not additional css or Js in page](https://wordpress.org/support/topic/good-plugin-simple-easy-not-additional-css-or-js-in-page/)󠁿

 [Mentik Yusmantara](https://profiles.wordpress.org/mentikyusmantara/) 2019 年 8
月 30 日

Thanks for creator

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/ace-html-block/reviews/)

## 贡献者及开发者

「ACE HTML Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ willdelphia ](https://profiles.wordpress.org/willdelphia/)

「ACE HTML Block」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/ace-html-block/contributors)
为本插件所做的贡献。

[帮助将「ACE HTML Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ace-html-block)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ace-html-block/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/ace-html-block/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ace-html-block/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ace-html-block/)。

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.1.22**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/ace-html-block/) 和 [Russian](https://ru.wordpress.org/plugins/ace-html-block/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/ace-html-block)
 * 标签
 * [ace-editor](https://cn.wordpress.org/plugins/tags/ace-editor/)[block](https://cn.wordpress.org/plugins/tags/block/)
   [html block](https://cn.wordpress.org/plugins/tags/html-block/)[raw html](https://cn.wordpress.org/plugins/tags/raw-html/)
   [syntax highlighting](https://cn.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [高级视图](https://cn.wordpress.org/plugins/ace-html-block/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/ace-html-block/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/ace-html-block/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/ace-html-block/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/ace-html-block/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/ace-html-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ace-html-block/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ace-html-block/reviews/)

## 贡献者

 *   [ willdelphia ](https://profiles.wordpress.org/willdelphia/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ace-html-block/)