The plugin already exists I think, it is called TextFX HTML Tidy.
You should consider revieong its script options, from http://tidy.sourceforge.net/, and then use that to turn your HTML into well formed XHTML. I believe XML Tools can handle that.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I syntax this code, I get a popup saying:
XML Parsing error at line 6:
Premature end of data in tag html line 1
==================
<html>
<body>
URL: <input>
</body>
</html>
==================
This code runs OK, so I can't see what XML Tools is complaining about.
I'm running XML Tools unicode alpha-4 r697
Andy
It looks like it's treating it as XML, which would require the <input> tag to be closed. If you change this to
==================
<html>
<body>
URL: <input />
</body>
</html>
==================
That should work in HTML too, but be valid XML.
Hope that helps.
Dave.
I'm working with a lot of .HTML files, with thousands of lines of code, so it's impractical to edit them all to look like XML files.
Is there a config file or something that I could change so the plugin handles HTML as well?
The plugin already exists I think, it is called TextFX HTML Tidy.
You should consider revieong its script options, from http://tidy.sourceforge.net/, and then use that to turn your HTML into well formed XHTML. I believe XML Tools can handle that.
CChris