[TxMt] Text indent on latest build

Andreas Wahlin andreaswahlin at bredband.net
Sat Nov 5 10:19:27 UTC 2005


> Doesn't a normal return already give you that?

Actually not;
<tag>
   text|</tag>

hitting enter there will produce

<tag>
   text
   </tag>

rather than

<tag>
   text
</tag>

hope you can spot the ASCII spaces :)

> What you can do is record a macro that does:
>
>  1) return
>  2) ctrl-shift left (select to begin of line)
>  3) tab (overwrite selection with tabs corresponding to calculated  
> indent)


This works as advertised and the behaviour is now as far as I can see  
perfect!
This also puts a closure to our other BIG thread on tabbing and some  
such, since all this also works in XML-files.
This mademy weekend, or something. Thanks again!

Andreas



More information about the textmate mailing list