跳到内容

HTML Editor Syntax Highlighter

v3.0.0

Peter Mukhortov · 2012年4月18日 上架

Syntax highlighting for the Classic editor's Text tab and the block editor's Code Editor, shortcodes included, using CodeMirror.

正在使用
6 万+
评分
4.4 / 5
累计下载
63 万
最近更新
2026年11月8日
110 条评价需要 WordPress 6.5+已测试到 7.1.5PHP 7.4+

截图

Syntax highlighting in the Classic editor's Code (Text) tab, with WordPress shortcodes highlighted like HTML.
Syntax highlighting in the Classic editor's Code (Text) tab, with WordPress shortcodes highlighted like HTML.
The settings panel: theme, key bindings, font and editor options, saved for each user.
The settings panel: theme, key bindings, font and editor options, saved for each user.
Syntax highlighting in the block editor's Code Editor, block comments included.
Syntax highlighting in the block editor's Code Editor, block comments included.
Example code highlighting: shortcodes, More tags, inline CSS and JavaScript.
Example code highlighting: shortcodes, More tags, inline CSS and JavaScript.
In the block editor, open the Code Editor from the Options menu, or press Ctrl+Shift+Alt+M (Cmd+Shift+Option+M on a Mac). Blocks in the visual editor are not highlighted.
In the block editor, open the Code Editor from the Options menu, or press Ctrl+Shift+Alt+M (Cmd+Shift+Option+M on a Mac). Blocks in the visual editor are not highlighted.

Add syntax highlighting to the Classic editor’s Text (Code) tab and the block editor’s Code Editor using CodeMirror 6. HTML, inline CSS and JavaScript, and WordPress shortcodes are all highlighted.

Features

  • Syntax highlighting in the Classic editor’s Text (Code) tab for posts and pages
  • Syntax highlighting in the block editor’s Code Editor (not the Visual Editor)
  • Syntax highlighting for WordPress [shortcodes], [[escaped]] shortcodes and <!--more--> tags
  • Search and replace, code folding, bracket and tag matching, auto-closing tags and brackets
  • Default, VS Code, Vim and Emacs key bindings
  • Save your posts and pages by pressing Ctrl+S (Cmd+S on Mac)
  • Restores the cursor position after the page reloads
  • 13 themes and other settings, saved for each user
  • Fullscreen mode in the Classic editor: toggle with F11/Esc

If you would like to contribute to this plugin, view the github repo.

Plums

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

导航

说明

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

© 2026 Plums