Hi, ist there a tool like tidy for pure XML documents? currently I have a very large XML document without linebreaks. I would use the tool to format the xml nicely and then open it in TM.
thanks, ALex.
2007/7/5, Tobias Jung newsgr@tobiasjung.net:
At 12:03 Uhr -0400 03.07.2007, Thomas Aylott (subtleGradient) wrote:
I regularly have to deal with html documents that have been stripped of all newlines.
Well, maybe this isn't the kind of solution you're looking for, but... Wouldn't it be better to use the "tidy" tool on these files _before_ opening them in TextMate? After all, it isnt't fun to work with "no linebreaks" HTML files anyway.
Using the following command line in the Terminal should give you a cleanly formatted file and leave most of the HTML code itself untouched:
tidy -o destiny.html -iq -wrap 70 --tab-size 4 --indent-spaces 4 source.html
Kind regards, Tobias
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
At 12:44 Uhr +0200 05.07.2007, Alex Greif wrote:
ist there a tool like tidy for pure XML documents? currently I have a very large XML document without linebreaks. I would use the tool to format the xml nicely and then open it in TM.
Try this:
tidy -o destiny.xml -iq -wrap 70 --tab-size 4 --indent-spaces 4 --input-xml 1 --output-xml 1 source.xml
Hope this helps! Regards, Tobias