[TxMt] Re: language definition - multiple folding marker possible?

Martin Kühl martin.kuehl at gmail.com
Sat Feb 25 14:02:34 UTC 2012


> can I add a pattern, so that I have multiple markers that signal a block?
>
> I tried;
>
>
> foldingStartMarker = ('first block definition', 'second block definition');
> foldingStopMarker = ('first block definition', 'second block definition');
>
>
> but that doesn't seem to work.

They're just regexps, so you'd typically use:
    foldingStartMarker = 'first block definition|second block definition';
    foldingStopMarker = 'first block definition|second block definition';
:-)

HTH,
Martin


More information about the textmate mailing list