Title: [Plugin: WP SyntaxHighlighter] broken
Last modified: August 20, 2016

---

# [Plugin: WP SyntaxHighlighter] broken

 *  Resolved [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/)
 * i have wordpress version 3.3 then today i upgrade wp-syntax-highlighter to 1.7.
   the plugin doesn’t broken, but when i’m trying to create new post or update a
   post, i cannot save it. when i press save button it just redirect to blank page,
   and everything what i write was not saved.
 * [http://wordpress.org/extend/plugins/wp-syntaxhighlighter/](http://wordpress.org/extend/plugins/wp-syntaxhighlighter/)

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

 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451161)
 * Hi, goblooge san
 * Thank you for your report.
 * 1. If “Load jQuery and jQuery UI” in “3. HTML Editor Settings” section is enabled,
   disable it.
 * 2. When you deactivate all plugins except “WP SyntaxHighlighter” and activate
   a default theme(Twenty eleven or Twenty ten), Can you save a post?
 * 3. Let me know your browser and version.
 *  Thread Starter [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451239)
 * i use firefox 8.0.
    i trying the first option and it’s work now, i don’t know
   why ? but thank you for your help, it’s really help me. 🙂
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451268)
 * Hi, goblooge san
 * That’s good.
 * I think jQuery loaded by WP SyntaxHighlighter conflicted with other javascripts.
 * In WP 3.1 or higher, SH pre button can work without loading extra jQuery.
 *  [madcap_loon](https://wordpress.org/support/users/madcap_loon/)
 * (@madcap_loon)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451396)
 * Hi Redcocker,
 * I’m not sure it the problem started with v1.7 or not — but I’m trying to publish
   this awk code using it and it’s ending up adding extra/duplicate characters/words…
   If I disable the plugin… then the code inside pre works…
 * The starange thing is… it adds those duplicate characters inside the editor also
   if I save draft while the plugin is active. A second save draft removes all text
   from the post.
 * Following is an example awk code:
 * `awk '{gsub(/ +/,"\t"); print $0}' <file_name>`
 * on preview it becomes:
 * `awk '{gsub(/ +/,"\t"); print awk \'{gsub(/ +/,\"\t\"); print awk '{gsub(/ +/,"\
   t"); print awk '{gsub(/ +/,"\t"); print $0}' <file_name>}' <file_name>}\' <file_name
   >}' <file_name>` on the front end.
 * and if I safe draft, the above comes into the editor also, automatically.
 * It works fine, if I don’t put them inside `<pre brush...>` tags, or works fine
   inside pre if I disable the plugin.
 * Tested on a new wordpress install, with no plugins also, and same result. Following
   is some more awk code inside a bash script you can try out.
 *     ```
       #! /bin/sh
       #User defined functions example
       awk '
       {nodecount()}  # Execute the user-defined nodecount() for each row to update the node count
       $0~/<clusternode /,/<\/clusternode>/{ print } # Print the rows between "<clusternode " and  "</clusternode>"
       function nodecount() #Function definition for nodecount
       {if($0~/clusternode name/){count+=1}
       }
       END{print "Node Count="count}' $1 #Print the count value in the END pattern which is executed once
   
       sh test.sh cluster.conf
            <clusternode name="node-01.example.com" nodeid="1">
                <fence>
                </fence>
            </clusternode>
            <clusternode name="node-02.example.com" nodeid="2">
                <fence>
                </fence>
            </clusternode>
            <clusternode name="node-03.example.com" nodeid="3">
                <fence>
                </fence>
            </clusternode>
       Node Count=3
       ```
   
 * Note, this is from a published article on a magazine, and I needed to publish
   that on the magazine’s website.
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451397)
 * Hi, madcap_loon san
 * Thank you for your report.
 * It is caused by the filter added by WP SyntaxHighlighter.
 * If the sourcecode contains `$0`, this issue will be caused.
    ($1, $2…$n also 
   causes other issue.)
 * e.g.
    `print $0;`
 * I will fix it in next release.
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451399)
 * Hi, madcap_loon san
 * I fixed this issue.
 * Please re-install Development Version.
 * Development Version: [http://downloads.wordpress.org/plugin/wp-syntaxhighlighter.zip](http://downloads.wordpress.org/plugin/wp-syntaxhighlighter.zip)
 *  [madcap_loon](https://wordpress.org/support/users/madcap_loon/)
 * (@madcap_loon)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451405)
 * Hi Redcocker,
 * Thanks a tonne. Working fine now. 🙂
 *  Thread Starter [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451413)
 * i got new problem, i install wp-syntax-highlighter in Multisite website. instalation
   and setup the plugins work fine but i can’t use it, i write java source code 
   in my post using syntaxhighlighter toolbox, it save correctly but in when i view
   the post not displayed correctly (the source code displayed but only as usual
   text, not source code/eclipse style)
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451415)
 * Hi, goblooge san
 * Sorry, I have no multisite testing environment now.
    Give me a little more time.
 * If you can, please post your sourcecode and displayed sourcecode here.
 *  Thread Starter [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451416)
 * here my source code, it’s displayed as plain text as you see here , BTW thanks
   for helping and sorry about my bad english, that not my mom language. 🙂
 * public static String urlEncode(String asli) {
    StringBuffer url = new StringBuffer();
   for(int i=0; i<asli.length(); i++) { char ch=asli.charAt(i); switch(ch) { case‘
   <‘: url.append(“%3C”); break; case ‘>’: url.append(“%3E”); break; case ‘/’: url.
   append(“%2F”); break; case ‘ ‘: url.append(“%20”); break; case ‘:’: url.append(“%
   3A”); break; case ‘-‘: url.append(“%2D”); break; default: url.append(ch); break;}}
   return url.toString(); }
 *  Thread Starter [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451417)
 * oooh, i forgot something, here the displayed source code
 * [http://www.goblooge.com/blog/urlencoder-j2me/#.TwZgEIHp40E](http://www.goblooge.com/blog/urlencoder-j2me/#.TwZgEIHp40E)
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451418)
 * Hi, goblooge san
 * I tested WP SyntaxHighlighter 1.7.1 in multisite environment, using same theme
   and it worked well.
 * [http://www.chrishappens.com/sharing/bloghappens/](http://www.chrishappens.com/sharing/bloghappens/)
 * I checked your source and I found “SyntaxHighlighterPro” plugin is activated.
 * [http://wordpress.org/extend/plugins/syntaxhighlighterpro/](http://wordpress.org/extend/plugins/syntaxhighlighterpro/)
 * If you activate both “WP SyntaxHighlighter” and “SyntaxHighlighterPro” at once,
   they can’t work.
 * Please disable “SyntaxHighlighterPro” plugin in your site(or network).
 *  Thread Starter [goblooge](https://wordpress.org/support/users/goblooge/)
 * (@goblooge)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451419)
 * i use “SyntaxHighlighterPro” because i think “WP SyntaxHighlighter” can’t work.
   but after instal “SyntaxHighlighterPro” , it doesn’t work too. i try to checkout
   my server and the problem is my server cache for post request too few, so the
   setting of both of them that i had made can’t save. i know that because in my
   dashboard always show up a message to configure in “WP SyntaxHighlighter” contol
   panel.
 * so i trying to install “WP SyntaxHighlighter” to my Localhost WordPress, and 
   export the setting as SQL file, then imported it to my server and everything 
   work fine.
 * Thank’s Again, now i uninstall “SyntaxHighlighterPro” and use “WP SyntaxHighlighter”
   because it include TinyMCE Button in Post editor 😀
 * once again, i say Thank You in Advance and Sorry about my bad English

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

The topic ‘[Plugin: WP SyntaxHighlighter] broken’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-syntaxhighlighter_66666c.svg)
 * [WP SyntaxHighlighter](https://wordpress.org/plugins/wp-syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-syntaxhighlighter/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [goblooge](https://wordpress.org/support/users/goblooge/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-broken/#post-2451419)
 * Status: resolved