[wordpress插件] ACE HTML BlockACE HTML块

wordpress 插件 文章 2020-01-25 23:20 546 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Registers a raw html block which uses the ACE Editor.

注册使用ACE编辑器的原始html块。

Features include syntax highligting, line numbers, indentation, and HTML validation.

功能包括语法高亮,行号,缩进和HTML验证。

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.

您的区块中包含的任何HTML标记都将被解释并呈现在面向用户的页面或帖子上,就像核心“自定义HTML”区块一样。

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

该插件不是用于在您的前端站点上嵌入漂亮的标记,而是用于那些需要在页面或帖子中包含原始HTML并希望提高HTML代码段的可读性并拥有更好的浏览器内代码的开发人员

editing experience.

编辑经验。

To Use:

要使用:

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

在编辑器中创建一个新块,然后在“格式”部分中查找“ ACE HTML块”。

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.

(希望)将来某个时候,WordPress在核心“自定义HTML”块上引入本机语法突出显示。

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.

该块被配置为与核心HTML块进行相互转换,因此,如果您要禁用此插件,则可以轻松地从该插件过渡。

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.

要转换此块,请单击块左上角的心脏图标,然后从下拉菜单中选择“自定义HTML”。

Thanks:

谢谢:

Under the hood it uses react-ace.

在后台,它使用反应王牌

下载地址

https://downloads.wordpress.org/plugin/ace-html-block.zip

https://downloads.wordpress.org/plugin/ace-html-block.zip

-EOF-

AI助手支持GPT4.0