[TxMt] Regex to indent new lines between tags

Mike Stickel mike at screenflicker.com
Sun Jun 10 18:31:03 UTC 2007


>> [...]
>> 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.

Mike Stickel
http://screenflicker.com/mike/ | http://gonecksgo.com



More information about the textmate mailing list