WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-SynHighlight] Wrapping ALL comments with <code> tags (11 posts)

  1. Navarr
    Member
    Posted 4 years ago #

    For some reason, the plugin is wrapping all of my comments (on all posts) with <code>COMMENT</code> tags.

    http://wordpress.org/extend/plugins/wp-synhighlight/

  2. FractalizeR
    Member
    Posted 4 years ago #

    You should use [codesyntax] shortcode in comments to perform highlighting. Not tags.

  3. Navarr
    Member
    Posted 4 years ago #

    I don't think you understand. I'm not attempting to perform highlighting in any comments, but all comments that already exist on the site are getting the <code> tag around them where there should not be one.

  4. FractalizeR
    Member
    Posted 4 years ago #

    My plugin does not add any < code > tags. So, the problem is somewhere else.`

  5. Navarr
    Member
    Posted 4 years ago #

    When I deactivate your plugin, the <code> tags go away, when I activate it, they appear.

    I think it may be a possible an error in the preg_replace function for searching for [codsyntax] blocks in comments.

  6. FractalizeR
    Member
    Posted 4 years ago #

    Hmmm... Thanks, I will look.

  7. WayneSmallman
    Member
    Posted 4 years ago #

    Yeah, I'm seeing the same thing. I knew straight away it was the Plugin because I'd just installed it.

  8. FractalizeR
    Member
    Posted 4 years ago #

    I will check, thanks

  9. FractalizeR
    Member
    Posted 4 years ago #

    Sorry for such a long time of fixing small little bug ;)

    2.2.2 committed.

  10. m0urs
    Member
    Posted 4 years ago #

    Thanks for this great plugin. I do have still a problem and I am wondering if you can help:

    As long as I only use the "Visua"l style editor everything works great. However, as soon as I switch the editor to "HTML" and back to the "Visual" editor and save th epost again it will get screwed up because of "
    " and "<p>" tags in the code.

    I tried different plugins which promise to disable automatic creation of these tags by WordPress but these did not help.

    Am I th eonly one who has that problem? Or does anybody have a solution for that?

    Thanks a lot,
    Michael

    P.S. I am using WP 2.9.2

  11. FractalizeR
    Member
    Posted 4 years ago #

    Do you use my plugin? It adds
    < pre > tags around the code to be highlighted to prevent WordPress from inserting any markup there.< /pre >

Topic Closed

This topic has been closed to new replies.

About this Topic