[TxMt] slow loading of large html/xml documents
Alex Greif
alex.greif at gmail.com
Thu Jul 5 10:44:12 UTC 2007
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 at 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 at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
More information about the textmate
mailing list