跳到内容

Custom HTML Block Extension

v5.0.0

Aki Hamano · 2021年5月8日 上架

Turn the Custom HTML block into an advanced code editor.

正在使用
7,000+
评分
5.0 / 5
累计下载
6.5 万
最近更新
2026年11月5日
14 条评价需要 WordPress 7.1+已测试到 7.2PHP 8.2+

贡献者

截图

Custom HTML Block Extension
Custom HTML Block Extension
Syntax highlighting with 50 themes
Syntax highlighting with 50 themes
Faster coding with Emmet
Faster coding with Emmet
Customize the editor to your liking, and import your settings from VS Code
Customize the editor to your liking, and import your settings from VS Code
Works in the code editor, the "Edit as HTML" mode of all blocks, the classic editor, and the theme and plugin file editors
Works in the code editor, the "Edit as HTML" mode of all blocks, the classic editor, and the theme and plugin file editors

Custom HTML Block Extension turns the Custom HTML block into an advanced code editor powered by Monaco Editor, the code editor behind VS Code.

Choose from 50 color themes to suit your taste. Block delimiters and shortcodes are highlighted, too.

Type short abbreviations, and Emmet expands them into full code snippets. You can also wrap selected code with an abbreviation.

Fine-tune the look and behavior of the editor to make it your own. You can also import your settings from VS Code and export them back.

The same editor is also available in the code editor of the post and site editors, the “Edit as HTML” mode of all blocks, the classic editor, and the theme and plugin file editors.

Resources

monaco-editor

  • License: MIT License
  • Source: https://github.com/microsoft/monaco-editor

emmet-monaco-es

  • License: MIT License
  • Source: https://github.com/troy351/emmet-monaco-es

monaco-themes

  • License: MIT License
  • Source: https://github.com/brijeshb42/monaco-themes

Web Font (Fira Code)

  • License: OFL-1.1 License
  • Source: https://github.com/tonsky/FiraCode

Web Font (Source Code Pro)

  • License: OFL-1.1 License
  • Source: https://github.com/adobe-fonts/source-code-pro

Web Font (Ubuntu Mono)

  • License: OFL-1.1 License
  • Source: https://ubuntu.com/legal/font-licence

Web Font (Anonymous Pro)

  • License: OFL License
  • Source: https://www.marksimonson.com/fonts/view/anonymous-pro

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums