[TxMt] Indenting after comments
Allan Odgaard
throw-away-1 at macromates.com
Wed Sep 26 18:19:01 UTC 2007
On 26/09/2007, at 03:12, Eric Uner wrote:
> If I have a C comment such as:
>
> /
> **---------------------------------------------------------------------------
> * xxxx
> *----------------------------------------------------------------------------
> */
>
> And I paste/type in some code right after this, textmate indents one
> character. I cant use cmd+{ to correct it because then all the
> indenting in
> the block I paste is incorrect.
It does? I tried that in C++ mode, and I don’t seem to get additional
indent.
> [...]
> On a related note (loosely) the top of the block has a folding
> symbol next
> to it in the gutter, but no corresponding symbol at the end of the
> block.
> Comment folding would be great, but clicking on the symbol at the
> start
> of the block has no effect.
The default grammar is set to fold on /** and stop on **/. So you
would need to add another * for the stop marker of your comment, then
it should fold.
E.g.:
/**
* This comment folds
**/
More information about the textmate
mailing list