WordPress.org

Plugin Directory

HTML Editor Syntax Highlighter

Add syntax highlighting to the HTML editor using Codemirror.js

1.7.2

  • fixed bug: code mirror not initializing properly when new user tries to edit post for the first time
  • fixed bug: CodeMirror no longer trying to load on "All Post" and "All Pages"
  • fixed bug: Font and theme were reset to default when switching to the visual editor and back

1.7.1

  • fixed bug: return key would create two new lines and ignore indent
  • fixed bug: wp native "Add Media" button was not working
  • added version string to .css and .js resources for cache-busting purposes

1.7.0

  • Ctrl-S / Cmd-S saving will now select "Save Draft" if the post has not been published yet
  • Switched to an npm and grunt.js based build so new versions of CodeMirror can be applied easier
  • Updated CodeMirror to its latest version
  • Fixed FireFox bug: <select> dropdown would not display due to ::active state transform property
  • Fixed bug: toolbar covering text at small screen width
  • Fixed bug: switchEditors is undefined
  • Updated Css for wp 4.5
  • Added all available CodeMirror themes
  • Added syntax highlighting:
    • for WordPress shortcodes
    • for <!--more--> tags and their variants
    • NEW CodeMirror modes: shortcode.js & wordpresspost.js
  • Now calling hesh.js in an anonymous wrapper so it won't pollute the global namespace
  • Now initializing hesh.js in an async compliant way
  • Refactored php to enqueue javascript in the WordPress friendly way
  • Tested with WordPress 4.5.2
  • Tested in all modern desktop browsers on OSX and Windows 10

1.6.9

  • Fixed issues with switching editor modes in WP 4.3

1.6.7

  • Added paragraph tag button, it's visible only when the visual editor is disabled
  • Added minimum editor window height for the full-height mode

1.6.6

  • Added minimum editor window height for the full-height mode

1.6.5

  • Fixes for full-height mode
  • Fixed the issue with a hidden first line on smaller screens

1.6.4

  • Fixed the issue with a hidden first line on smaller screens

1.6.3

  • Fixed editor window height and resize handler
  • "headers already sent" issue

1.6.2

  • Compatibility with WP 4.0
  • Fixed fullscreen mode

1.6.0

  • You can change font size in the editor
  • Fixed issue with restoring cursor position
  • Updated CodeMirror library
  • Some minor improvements

1.5.0

  • Updated CodeMirror library
  • Some minor improvements

1.4.8

  • Add Link button now works with page selector window
  • Some minor improvements

1.4.7

  • You can now select Light or Dark editor colour theme

1.4.6

  • Fixed issue when "Add Media" button stopped working
  • Fixed editor resize bug in Visual mode.

1.4.5

  • Bug fixing

1.4.4

  • Add Media button now works correctly in Text mode
  • Fixed jumping cursor issue when ‘:’, '{', '}' keys are pressed

1.4.3

  • Fixed jumping cursor issue when ‘/’ key is pressed.

1.4.2

  • Fixed a focus bug

1.4.1

  • Toggle fullscreen mode with F11/Esc hotkeys
  • Publish Post/Page hotkeys Ctrl + S / Cmd + S
  • Fixed some bugs for IE 8
  • Added development files to the zip bundle

1.4.0

  • New fullscreen mode
  • Remembers tab state
  • Editor resize handler
  • Code refactoring and minification for better loading performance

1.3.2

  • Updated CodeMirror library
  • Increased loading performance
  • Match brackets

1.3.0

  • CodeMirror library updated to version 3.02
  • Added quick-tags toolbar buttons
  • Preserve the scroll position after update or page reload

1.2.1

  • vertical resize for the editing box (works on FireFox, Chrome, Safari).
  • not working buttons/tags was hidden

1.2

Bug fix: * plugin does not work in new post/page.

1.1

Bug fix (thanks to collinprice): * when user has the visual editor disabled this plugin does not show up.

1.0

Initial release.

Requires: 4.0.11 or higher
Compatible up to: 4.5.3
Last Updated: 2 months ago
Active Installs: 10,000+

Ratings

4.5 out of 5 stars

Support

1 of 7 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1
50,2,1 100,1,1
100,1,1 100,2,2 33,3,1
0,1,0
71,7,5
75,4,3
100,1,1 75,4,3
0,1,0
100,2,2 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
0,1,0 100,1,1 100,1,1 100,2,2
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,2,2
100,3,3
100,2,2
0,2,0 100,1,1 50,2,1 100,1,1
75,4,3
100,1,1 0,1,0 100,2,2
100,1,1
100,1,1
100,1,1
60,5,3
50,2,1
100,1,1
33,6,2 33,3,1
0,1,0 50,2,1
0,1,0
100,2,2
0,1,0 100,1,1
0,1,0
100,1,1