Title: [Plugin: SyntaxHighlighter Evolved] html tags gets added to my code
Last modified: August 19, 2016

---

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

 *  [espen-gjelsvik](https://wordpress.org/support/users/espen-gjelsvik/)
 * (@espen-gjelsvik)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/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.
    [http://gmx.no/2001/01/tester-syntax/](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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-tags-gets-added-to-my-code/#post-1641336)
 * 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](https://wordpress.org/support/users/espen-gjelsvik/)
 * (@espen-gjelsvik)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-tags-gets-added-to-my-code/#post-1641395)
 * 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 [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-tags-gets-added-to-my-code/#post-1641415)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

## Tags

 * [html-tags](https://wordpress.org/support/topic-tag/html-tags/)

 * 3 replies
 * 2 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-tags-gets-added-to-my-code/#post-1641415)
 * Status: not resolved