Joshua Tree
Member
Posted 2 months 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/
Joshua Tree
Member
Posted 2 months ago #
Sorry substituting < and > for < and >
Joshua Tree
Member
Posted 2 months ago #
okay so that doesn't work...
substituting < and > for there HTML Entity Name.
Thanks
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
Joshua Tree
Member
Posted 2 months 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.
Did you fail to add [/code] after your HTML? I see it missing from your original post.