[TxMt] Force Tabs with snippets

Allan Odgaard throw-away-1 at macromates.com
Fri Jun 1 16:23:24 UTC 2007


On 1. Jun 2007, at 18:11, Helmut Granda wrote:

> hummm... thanks for the recommendation, I'll try to figure out how  
> to do it with a command.

A simple one would be:

     unexpand -t $TM_TAB_SIZE <<'SNIPPET'
     «your snippet»
     SNIPPET

In «your snippet» you would use spaces instead of tabs and only start  
columns at offsets dividable by 24, that would then convert properly  
to tab sizes 2, 3, 4, 6, 8, 12, and 24.




More information about the textmate mailing list