這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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!

Blocks

This plugin provides 1 block.

  • 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 訂閱開發記錄