WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. gregbarr23
    Member
    Posted 2 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:
    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/

  2. redcocker
    Member
    Plugin Author

    Posted 2 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;
    }
    </pre>

    At least, PHPs outputs HTML successfully.

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

  3. gregbarr23
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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

About this Topic