Title: [Plugin: SyntaxHighlighter Evolved] HTML5/XHTML5 Validation error
Last modified: August 20, 2016

---

# [Plugin: SyntaxHighlighter Evolved] HTML5/XHTML5 Validation error

 *  [Sandro Bilbeisi](https://wordpress.org/support/users/sandrobilbeisi/)
 * (@sandrobilbeisi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/)
 * SyntaxHighlighter Evolved emits a meta tag in the head of the document which 
   is not supported by HTML5/XHTML5 (experimental) validators.
 * > Error: Bad value syntaxhighlighter-version for attribute name on element meta:
   > Keyword syntaxhighlighter-version is not registered.
   >  `<meta id="syntaxhighlighteranchor"
   > name="syntaxhighlighter-version" content="3.1.1" />`
 * [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

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

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111821)
 * I was under the impression that the `<meta>` tag `name` value could be anything
   you wanted it to be. Not sure why it’s throwing an error.
 * That tag is used by a bit of Javascript to dynamically add some CSS stylesheets
   directly after it by the way.
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111966)
 * it used to validate. Now it doesn’t. Any fix? It’s the only error on my page.
   I’ll prefer to not spend a whole lot of time trouble shooting this.
 *  [GPixels](https://wordpress.org/support/users/gpixels/)
 * (@gpixels)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111970)
 * Actually, I hope to find out the answer to this too…I need my theme to go green!
   Overall, this plugin is great but just that little quirk that needs a solution.
 *  [GPixels](https://wordpress.org/support/users/gpixels/)
 * (@gpixels)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111973)
 * Not sure if this meta tag will be removed from the plugin in a next version from
   Viper007Bond, but for a nice valid site, I tried one thing, although it’s not
   really the best way, is to comment out line 570 in the syntaxhighlighter.php 
   file…the part that begins with:
    `echo '<meta id="syntaxhighlighteranchor" .....`
   just put a couple forward slashes in front of echo. Make sure you keep a copy
   of the original file before doing this incase you have to go back. Also, the 
   messy part is updating the plugin, it will overwrite what was commented out. 
   So far the site works and the validation is all green. Still, it’s an awesome
   plugin!
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111976)
 * I’m not outputting that meta tag for fun. 😉
 * The plugin uses it as an anchor. Javascript finds it and then dynamically adds
   the stylesheets after it. This is better than directly before `</head>` because
   this way other stylesheets can override values.
 *  [GPixels](https://wordpress.org/support/users/gpixels/)
 * (@gpixels)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111977)
 * ah… so Alex is watching the thread here 🙂
 * Anyway, I still commented it out. As for css, I simply added some custom styling
   to my theme’s style.css instead. Of course, that is just me, and not sure it’s
   what others would do.
 * The meta tag is just an irritating itch for me personally, but regardless, it’s
   still a great plugin.
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111978)
 * > ah… so Alex is watching the thread here 🙂
 * Yeah, I’m trying to be better about watching support threads about my plugins.
   🙂
 * I just had an “aha!” moment — I bet I could hook onto the `<title>` element. 
   This is way early in the `<head>` and should accomplish the same thing. 🙂
 *  [GPixels](https://wordpress.org/support/users/gpixels/)
 * (@gpixels)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111979)
 * If whatever you do is an alternative and it works, I will have to buy you a grande
   mocha! Of course, that means coming to Vancouver…lol
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111980)
 * I’m in Portland actually. 🙂
 *  [GPixels](https://wordpress.org/support/users/gpixels/)
 * (@gpixels)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111981)
 * Vancouver, BC, Canada for moi….almost neighbors!
    Well..back to design work for
   me, have to get this new theme finished 🙂
 *  [newDelacroix](https://wordpress.org/support/users/newdelacroix/)
 * (@newdelacroix)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111984)
 * I don’t know if this might do the trick or if this problem is still relevant.
   But what if instead of outputting it in output_header_placeholder() function,
   we comment it out and write anonymous jQuery function which appends it to <head/
   > section?
 * Something like:
    `$("head").before('<meta id="syntaxhighlighteranchor" name="
   syntaxhighlighter-version" />');`
 * And then simply add it through wp_enqueue_script() if functions.php

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

The topic ‘[Plugin: SyntaxHighlighter Evolved] HTML5/XHTML5 Validation error’ 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

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

 * 11 replies
 * 5 participants
 * Last reply from: [newDelacroix](https://wordpress.org/support/users/newdelacroix/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html5xhtml5-validation-error/#post-2111984)
 * Status: not resolved