[TxMt] Re: help on folding rules

Allan Odgaard throw-away-1 at macromates.com
Sun Jun 10 15:45:23 UTC 2007


On 10. Jun 2007, at 17:38, Piero D'Ancona wrote:

>>> 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.
> I did RTFM. But I am confised, nevertheless (sorry, just a  
> mathematician, JAM). Try this: create a tex file containing only
>
> \begin{equation}
> \begin{split}
> \end{split}
> \end{equation}
>
> (no indentation) and you will notice that folding is indeed  
> activated on both groups [...]

The indent for the fold start and fold stop marker needs to be the same.

In your example the indent is zero for both the start and the stop  
marker (both in nesting level 1 and 2), thus it works.

In your next example you change the indent of the outer group to 1,  
but it is also changed for the stop marker, thus the indent is still  
the same for the start and the stop marker.






More information about the textmate mailing list