[TxMt] Wrap text while preserving formatting

Josh josh at epweblogic.com
Thu Jul 27 12:53:14 UTC 2006


This works great! Thanks Eric for the suggestion and thanks Allan for  
command.

Josh

On Jul 27, 2006, at 6:54 AM, Allan Odgaard wrote:

> On 26/7/2006, at 18:27, Eric D. Fields wrote:
>
>> Perhaps I'm doing this wrong, but I'm trying to figure out a way  
>> to do
>> wrap text using the command-ctrl-shift-w shortcut while preserving my
>> code formatting. [...]
>
> I have changed the command to the following, which makes it leave  
> the indent to the left of the start tag:
>
>     perl -pe 's/[\$`\\]/\\$&/g; s/([ \t]*)(.+)/$1<\${1:li}>$2<\/\${1 
> \/\\s.*\/\/}>/'
>
>
>
> ______________________________________________________________________
> 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