Page 1 of 1

Codedformatter html as xml

Posted: Wed Jun 14, 2017 11:51 am
by AJenbo
Would it make sense to format html via the xml formatter code path, or is there something about html that it's not able to handle (implicit self closing tags maybe?)?

Re: Codedformatter html as xml

Posted: Wed Jun 14, 2017 12:20 pm
by eranif
The XML is using wxXmlDoducment class which when saving the document formats it.
I suspect it won't be able to handle HTML - because of the differences between HTML and XML (e.g. <hr> has no closing tag)

Re: Codedformatter html as xml

Posted: Mon Jul 03, 2017 12:54 pm
by AJenbo
Your probably right, and trying to use it would be non user-friendly if it's not clear why it's able to format some html documents (xml compatible) but not others.