WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] spaces not properly indented (7 posts)

  1. thedannywahl
    Member
    Posted 2 years ago #

    The coding standards for platform I develop for (Moodle) requires indentation to be 4 spaces (not tabs)

    The latest update of crayon has broken multiple spaces to only be displayed as a single space. You can see a demo here:

    http://iyware.com/browser-detection-in-moodle/

    In previous versions the spaces were indented properly. You can also toggle to the original code and see that it's indented properly.

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Copying the plain code from that into a new Crayon doesn't seem to cause your issue. Could you send me in plain text the HTML code of your post from the editor?

  3. thedannywahl
    Member
    Posted 2 years ago #

    I'm actually loading them from text files using the url="" switch:

    http://iyware.com/assets/ie-check.txt
    http://iyware.com/assets/cf-check.txt
    http://iyware.com/assets/iOS-check.txt

    So there's exactly what's being called. Oh, I just realized you mean the WP-Post:

    http://pastebin.com/xX0vdDby

  4. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, that's different it's probably a formatter issue, I'll look into it.

  5. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Try replacing crayon_formatter.class.php from here:

    http://dl.dropbox.com/u/33811812/Crayon/crayon-syntax-highlighter-1.9.2-2.zip

  6. thedannywahl
    Member
    Posted 2 years ago #

    using the newer formatter resolved this issue. Thanks!

  7. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic