WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Problem with Inline Code (10 posts)

  1. teerow
    Member
    Posted 2 years ago #

    Hi there,

    i currently face a problem with inline code on a (nearly) fresh install of WordPress 3.4 (standard theme) and Crayon Syntax Highlighter. Whenever i try to insert inline code in a post or page, everythings works fine in the backend but when displaying the preview oder published version of that post, the inline tag "swallows" the rest of the paragraph. It looks as if the rest of the paragraph also stands within the inline tag but definitly doesn't in the backend!

    When inserting
    Example of inline syntax {php} echo "abd"; {/php}.This is an example page...
    in the Editor, it produces the following output:
    http://tinypic.com/r/13ynwpk/6

    So it would be great, if you can give me advice how to fix it?!

  2. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    That seemed to work for me: http://snag.gy/lABcI.jpg

    You can also try using the Tag Editor, since there will be no extra parsing of the {php} into a span tag and you'll be able to see in green where the code is.

  3. teerow
    Member
    Posted 2 years ago #

    Unfortunately I can't fix it, reinstall and playing around with the configurations didn't work either: it makes no difference whether I use the Tag Editor or not. The backend seems to work correctly. When I use the Tag Editor the inline code snippet is green exactly where expected. But when previewing the code in the frontend the above error accurs.

    EDIT: I observed that on your own Demo-Site the error occurs as well. Please have a look: http://aksandbox.webege.com/?p=79

    From that page i get this output.

  4. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, then it's a bug. I works on the latest build however, try this:

    https://dl.dropbox.com/u/33811812/Crayon/crayon-syntax-highlighter-1.9.11-1.zip

  5. Martin Herbst
    Member
    Posted 2 years ago #

    I had the same problem and wanted to try the version attached to the latest post. But this seems to be an older version. It appears as Version 1.7 and the contained files are older than those contained in the latest version.

  6. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, please try downloading the zip of the source code in the master branch:

    https://github.com/aramkocharyan/crayon-syntax-highlighter/downloads

    I'm moving away from making zips from svn so silly naming issues don't occur and the code is better maintained.

  7. tzdk
    Member
    Posted 2 years ago #

    I can confirm inline code seems to work. Both from the tag window thingy and when inserted with mini tags.

  8. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Great, tagging as 1.9.11 now.

  9. teerow
    Member
    Posted 2 years ago #

    Confirmation confirmed ;) Worked for me as well. Thank you, for your great support and help!

  10. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, glad to have helped!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic