Codedformatter html as xml

Discussion about CodeLite development process and patches
AJenbo
CodeLite Enthusiast
Posts: 41
Joined: Mon May 22, 2017 12:06 pm
Genuine User: Yes
IDE Question: C++
Contact:

Codedformatter html as xml

Post 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?)?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codedformatter html as xml

Post 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)
Make sure you have read the HOW TO POST thread
AJenbo
CodeLite Enthusiast
Posts: 41
Joined: Mon May 22, 2017 12:06 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codedformatter html as xml

Post 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.
Post Reply