Title: [Plugin: HTML Editor Syntax Highlighter] Bug found
Last modified: August 20, 2016

---

# [Plugin: HTML Editor Syntax Highlighter] Bug found

 *  ResolvedPlugin Contributor [collinprice](https://wordpress.org/support/users/collinprice/)
 * (@collinprice)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/)
 * There is a bug that when the user has the visual editor disabled this plugin 
   does not show up. To fix it, I added the following to the javascript:
    … _[42
   lines of code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  …
 * Thanks for the great plugin.
 * [http://wordpress.org/extend/plugins/html-editor-syntax-highlighter/](http://wordpress.org/extend/plugins/html-editor-syntax-highlighter/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [collinprice](https://wordpress.org/support/users/collinprice/)
 * (@collinprice)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707856)
 * [Some code to make the plugin work when the visual editor is disabled.](http://pastebin.com/8ychz2Yh)
 *  Plugin Author [Peter Mukhortov](https://wordpress.org/support/users/nixdns/)
 * (@nixdns)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707886)
 * Hi Collin,
 * Thanks a lot for the fix. I’ve added it to the 1.1 release.
 *  [scrupulosis](https://wordpress.org/support/users/scrupulosis/)
 * (@scrupulosis)
 * [14 years ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707899)
 * Installed version 1.1 and could not get it to work with visual editor disabled.
   
   I think you forgot to remove line 33 switchEditors.switchto(document.getElementById(“
   content-html”)); following collinprice fix.
 * Thanks for your plugin.
 *  [netaction](https://wordpress.org/support/users/netaction/)
 * (@netaction)
 * [14 years ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707902)
 * I can confirm the bug in plugin version 1.1.
 *  Plugin Author [Peter Mukhortov](https://wordpress.org/support/users/nixdns/)
 * (@nixdns)
 * [14 years ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707903)
 * Thanks guys for helping with the plugin. Fixed in v1.2
 *  [netaction](https://wordpress.org/support/users/netaction/)
 * (@netaction)
 * [14 years ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707904)
 * Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: HTML Editor Syntax Highlighter] Bug found’ is closed to new 
replies.

 * ![](https://ps.w.org/html-editor-syntax-highlighter/assets/icon.svg?rev=2013780)
 * [HTML Editor Syntax Highlighter](https://wordpress.org/plugins/html-editor-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-editor-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-editor-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/html-editor-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-editor-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-editor-syntax-highlighter/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [netaction](https://wordpress.org/support/users/netaction/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-html-editor-syntax-highlighter-bug-found/#post-2707904)
 * Status: resolved