[TxMt] Nonstandard C indentation rules

Alexey Sudachen alexeychen at gmail.com
Wed May 18 09:06:35 UTC 2011


Hello,

I need to change indentation rules to correctly indenting C code like this

int func(int a)
 {
   if ( a )
     {
       return do_it();
     }
   else
     return 0;
 }

here is two spaces before '{' and two after.

How I can do it? The regxps in indentation preferences are quite hard to understand right.

Muchas gracias,
Alexey.



More information about the textmate mailing list