[TxMt] help on folding rules

Allan Odgaard throw-away-1 at macromates.com
Sun Jun 10 12:05:51 UTC 2007


On 10. Jun 2007, at 13:36, Piero D'Ancona wrote:

> What are *exactly* the folding rules?

 From the manual:

     [...] the folding system is based on both having clear indent
     markers and having the fold start/stop markers use the same
     indent level. This means that folding based purely on indent
     or where the start/stop markers do not align, is currently not
     supported.

> I understand folding keeps into account both the rules given in the  
> language definition and the text indentation, but which one takes  
> precedence?

Both are required, none take precedence.

> above all, is there a way to completely overrule the indentation  
> thing and let folding use only the rules declared in the language?

No.






More information about the textmate mailing list