Forums

[Plugin: SyntaxHighlighter Evolved] Brush wasn't configured for html-script option: xml (6 posts)

  1. Joshua Tree
    Member
    Posted 2 years ago #

    I'm trying to display some html code but keep getting this error "Brush wasn't configured for html-script option: xml".

    I've set my code up like this...

    [code htmlscript="true" lang="html"]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>

    Also when I publish a post the plugin seems to be scrambling the code, substituting < and > for < and >, I have to deactivate the plugin when I'm writing/publishing the post and then activate it once I'm done and then it's fine.

    Any help with these two issues would be tremendous.

    http://wordpress.org/extend/plugins/syntaxhighlighter/

  2. Joshua Tree
    Member
    Posted 2 years ago #

    Sorry substituting < and > for < and >

  3. Joshua Tree
    Member
    Posted 2 years ago #

    okay so that doesn't work...

    substituting < and > for there HTML Entity Name.

    Thanks

  4. Turn off htmlscript. You don't use it for the html language. It's used for when you're doing HTML inside of a separate language, such as PHP.

    Allows you to highlight a mixture of HTML/XML code and a script which is very common in web development.

    http://alexgorbatchev.com/wiki/SyntaxHighlighter:Demo:html-script

  5. Joshua Tree
    Member
    Posted 2 years ago #

    I tried removing it and setting it to false but it doesn't make any difference any tags like html, head, or body are all ignored. My code is also still being scrambled so any help would be greatly appreciated.

  6. Did you fail to add [/code] after your HTML? I see it missing from your original post.

Topic Closed

This topic has been closed to new replies.

About this Topic