Title: [Plugin: WP SyntaxHighlighter] WP SyntaxHighligher Adding Line Breaks to Code
Last modified: August 20, 2016

---

# [Plugin: WP SyntaxHighlighter] WP SyntaxHighligher Adding Line Breaks to Code

 *  [gregbarr23](https://wordpress.org/support/users/gregbarr23/)
 * (@gregbarr23)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-wp-syntaxhighligher-adding-line-breaks-to-code/)
 * I pasted in the sample code and the plugin seems to be working except it’s breaking
   the code to new lines when there are no line breaks in the code. Doing this in
   Chrome, Firefox and IE.
 * Here’s my page:
    [http://solacesystems.com/testing-code-plugin/](http://solacesystems.com/testing-code-plugin/)
 * Can somebody please take a look and tell me how to fix the problem?
 * Thanks,
    – Greg
 * [http://wordpress.org/extend/plugins/wp-syntaxhighlighter/](http://wordpress.org/extend/plugins/wp-syntaxhighlighter/)

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

 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-wp-syntaxhighligher-adding-line-breaks-to-code/#post-2615554)
 * Hi, Greg san
 * Your HTML source has no pronlem.
 *     ```
       <pre class="brush: javascript;">
       // SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
       // http://alexgorbatchev.com
       var setArray = function(elems) {
           this.length = 0;
           push.apply(this, elems);
           return this;
       }
       </pre>
       ```
   
 * At least, PHPs outputs HTML successfully.
 * This issue may be caused by javascripts.
    Do you get any errors in your browser?
 *  Thread Starter [gregbarr23](https://wordpress.org/support/users/gregbarr23/)
 * (@gregbarr23)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-wp-syntaxhighligher-adding-line-breaks-to-code/#post-2615559)
 * Hi thanks for checking it out for me and trying to help.
 * No, I’m not getting any errors in my browser. Everything seems to be working 
   fine except that addition of line breaks. : (
 *  Plugin Author [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-wp-syntaxhighligher-adding-line-breaks-to-code/#post-2615560)
 * Hi, Greg san
 * When all plugins is disabled except this plugin, How does it work?

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

The topic ‘[Plugin: WP SyntaxHighlighter] WP SyntaxHighligher Adding Line Breaks
to Code’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [redcocker](https://wordpress.org/support/users/redcocker/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-syntaxhighlighter-wp-syntaxhighligher-adding-line-breaks-to-code/#post-2615560)
 * Status: not resolved