WP SyntaxHighlighter
WP SyntaxHighligher Adding Line Breaks to Code (4 posts)

  1. gregbarr23
    Posted 4 years ago #

    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:

    Can somebody please take a look and tell me how to fix the problem?

    - Greg


  2. redcocker
    Plugin Author

    Posted 4 years ago #

    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;

    At least, PHPs outputs HTML successfully.

    This issue may be caused by javascripts.
    Do you get any errors in your browser?

  3. gregbarr23
    Posted 4 years ago #

    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. : (

  4. redcocker
    Plugin Author

    Posted 4 years ago #

    Hi, Greg san

    When all plugins is disabled except this plugin, How does it work?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP SyntaxHighlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic