Add syntax highlighting to WordPress code editors using CodeMirror.js
As of April 2026, HTML Editor Syntax Highlighter is a WordPress Codemirror plugin with 50K+ active installations and a 4.4/5 rating from 110 reviews. It has been downloaded 590K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2012. Last updated 2 years ago — may have compatibility concerns. Downloads are up 10% this week. Top alternative: Custom Header Footer Scripts for….
Add syntax highlighting in the Classic Post & Page HTML text editor, Gutenberg Code Editor, and Theme & Plugin editors using CodeMirror.js
[shortcodes/]Ctrl+S (Cmd+S on Mac)F11/Esc hotkeysIf you would like to contribute to this plugin, view the github repo.
If you’re a regular user of this plugin, please consider taking a short User Experience Survey to provide feedback that will help shap…
这个代码高亮插件是我测试过效果最好的一个,但是只能在后台实现,如何在前端文章页面也使用高亮效果呢
In the era of Gutenberg and visual builders, as a good old programmer of the past, I need to edit HTML code in the showcase pages of the WordPress sites I create. This plugin is therefore a must-have for me. It works very well, it doesn’t have many options but all those necessary to configure the editing environment comfortable for me.
The fantastical plugin that converts faceless TinyMCE to the powerful tool.
The only suggestion is to mark dark/light themes, please
HESH is built on top of Code Mirror which is first class code. The implementation is somewhat eclectic including a settings button in the front end which allows the user to really play with editor settings. Easy access to the settings is convenient at first and then a bit of a distraction.
HESH even highlights WordPress shortcodes [shortcode] syntax.
What HESH doesn’t have is Markdown syntax highlighting in the posts/pages plain text editor but the WordPress shortcodes and HTML highlighting helps make up for it.
What is buggy are the settings on iPhone (iOS 13.5) where the settings buttons more or less don’t work and the settings can’t be closed. If you don’t touch the settings though, HESH provides a better plain text editor than WordPress default (which can be very finicky to accept text entry). It remains easier to edit on iOS with HESH installed than without so no downnmarks here.
All in all a great plugin, a bit overwhelmed right now with legacy support for WordPress 4.9 editor, Classic Editor, Code view, plain text editor, Gutenberg and the sixteen different kinds of blocks which might need syntax highlighting. I can’t blame the plugin authors for not being on top of all editors all the time now in the current Gutenberg-induced editor hell.
Very, very grateful for their hard work and looking forward to HESH v3.
Thank you for taking the time to create such an awesome plugin 🙂 lots of options of colours etc. Very good.
| WordPress | 4.0+ requiredTested up to 6.5.0 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.