[TxMt] slow loading of large html/xml documents

Tobias Jung newsgr at tobiasjung.net
Thu Jul 5 10:30:33 UTC 2007


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




More information about the textmate mailing list