[TxMt] Regex to indent new lines between tags
Ciarán Walsh
ciawal at gmail.com
Sun Jun 10 18:37:49 UTC 2007
On 10 Jun 2007, at 19:31, Mike Stickel wrote:
>>> [...]
>>> That's what I have been doing but I was wondering if there was a
>>> way to do it with the search and replace dialog using regular
>>> expressions to replace all the \n with \n\t to get that indent
>>
>> So you want to re-indent your HTML solely by running a single
>> regexp replace?
>>
>> This is not possible -- why is that restraint necessary?
>
> I'm going through multiple updates on a very large site. There is
> already a series of search and replaces that I'm doing on these
> files. In order to format the existing code a little better I was
> hoping I could just use another search and replace instead of
> selecting the code and using the indent command.
>
> If there's no way to do it then it's no big deal, I was just curious.
Maybe use Tidy and a bash script
More information about the textmate
mailing list