[TxMt] custom indentation
Allan Odgaard
throw-away-1 at macromates.com
Sat Mar 17 03:37:37 UTC 2007
On 16. Mar 2007, at 17:01, Simon Olsberg wrote:
> [...] Here is an example of I need indentation to work
>
> void example_function()
> {
> short i, n = 10;
>
> for (i = 0; i < 10; i++)
> {
> do_something(i);
> }
>
> do_completion();
> }
I am afraid that indent style cannot be done with the current indent
pattern possibilities.
> I would even be happy to do without the regular c indentation
> rules, and have tried overriding them with empty patterns, but I
> still have a problem when I type the semi-colon to complete the
> do_completion() line as this line will get auto-indented to match
> the indent level of the loop block.
For that, remove the macro named “Insert ; and Indent Line” in the C
bundle. This is what causes ; to trigger the indent.
More information about the textmate
mailing list