Support » Plugin: SyntaxHighlighter Evolved » [Plugin: SyntaxHighlighter Evolved] html tags gets added to my code

  • 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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Alex Mills


    Try temporarily disabling all other plugins.

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

    Thread Starter Espen Gjelsvik


    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?

    Plugin Contributor Alex Mills


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: SyntaxHighlighter Evolved] html tags gets added to my code’ is closed to new replies.