- August 5, 2015 at 4:35 pm #20289BobBaileyParticipant
I have an xml file that I want to edit a bit. Problem is that it comes up largely, actually completely, as one very long line. Since it was generated by another app I’m reluctant to reformat it for my purposes.
Is it possible through a plug-in or some such to render this code as it appears in Firefox or IE? That is, indented and single lines per tag?
This is probably a duh and I did search but all I found were fairly esoteric Q&A.
TIA… BobAugust 6, 2015 at 11:27 am #20291StefanParticipant
You can use any command line tool, like “HTML Tidy” (http://tidy.sourceforge.net/)
Download, unpack (I have a sub folder “Tools” in my EmEditor folder)
and add a EmEditor Tool:
Tools > External Tools > Customize Tools > New
Title: HTML Tidy -xml
Arguments: -xml -i -q “$(Path)”
[X] Use Output Bar
Output: Replace Document
(Currently I don’t know how to just replace the document without opening the output bar ???)
Open your file. run the new tool, close Output bar, done.
HTH? ;DAugust 6, 2015 at 2:26 pm #20292BobBaileyParticipant
Thanks. I found a macro that does it quite nicely: XMLFormatter.jsee
…BobMarch 10, 2016 at 11:49 am #20658Scott BeesonParticipant
For anyone else who finds this, if you copy and paste Stefan’s settings be sure you replace the HTML quotes with normal quotes!November 10, 2018 at 6:53 pm #23955Mark PaulsonParticipant
I’m a noob and can’t seem to get this to work. I could use some help getting tidy to work.
ThanksNovember 12, 2018 at 8:26 am #23956Yutaka EmuraKeymaster
As for HTML Tidy, there is a description with a screenshot at the bottom this page:
- You must be logged in to reply to this topic.