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

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.

屏幕截图

  • Take a look at those colors!

区块

该插件提供了1个区块.

  • ACE HTML Block

评价

2021年5月18日
A fantastic replacement for the crappy Custom HTML block 🙂
阅读所有3条评价

贡献者及开发者

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

贡献者

“ACE HTML Block”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“ACE HTML Block”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志