WordPress.org

Ready to get started?Download WordPress

Forums

SyntaxHighlighter Evolved
html tags gets added to my code (4 posts)

  1. Espen Gjelsvik
    Member
    Posted 3 years ago #

    Ive seen this mentiones earlier here, but te solutions seems to have been missing wp_footer() in the template.

    I have the problem that

    < br />
    & lt; ? < br />

    gets added in the first line of my highlighted code.
    Every line gets a <br \> at the end, and at the last line i get a
    ?& gt;< br />

    It seems like the tinymce is trying to escape html/php. Even though I am using HTML mode, not Visual.

    Heres a link to a "live" post showing my problem.
    http://gmx.no/2001/01/tester-syntax/

    I also have trouble with lots and lots of &amp gets added to my code. But for now i cant reproduce it, it only happens on my older posts.

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 3 years ago #

    Try temporarily disabling all other plugins.

    And when you edit the post with the HTML tab active, the post and code look correct, right?

  3. Espen Gjelsvik
    Member
    Posted 3 years ago #

    Yes, everything looks fine in editor, actually both in visual en html tab.. Its first when looking at the actual post i get the errors.

    I disabled all plugins, I then enabled syntax highlighter evolved. And now everything was fine.. I then enabled the plugins one by one, checking the syntax highlighter evolved output for each time. But then I was able to enable all of them withouth the html code getting inside my code..

    So for now it is allright :)

    A last question for you, Alex. Whats the "best practice" way to insert code with your plugin.

    -Write the entire post in HTML mode, including pasting the code?
    -Write the post in Visual mode, switch to html to paste code?
    Will later editing in the visual tab mess it up again?

  4. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 3 years ago #

    The absolute best results come from writing it in your favorite code editor and then copy/pasting it into the HTML editor. That way you get tabs, etc.

    Second best is writing it in HTML view or pasting into Visual view I think.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic