[TxMt] Re: PHP Alternate Syntax & Folding

Allan Odgaard mailinglist at textmate.org
Tue Oct 27 18:38:50 UTC 2009


On 22 Oct 2009, at 18:54, Peter Bonnell wrote:

> I'm experimenting with PHP alternate syntax (no curly braces) and
> can't get the blocks to fold.
> My PHP language bundle contains the following:
> foldingStartMarker = '(/\*|\{\s*$|<<<HTML)';
> foldingStopMarker = '(\*/|^\s*\}|^HTML;)';
>
> Can anybody point me in the right direction to get my alternate syntax
> to play nice ?

The problem here is that folding patterns are only taken from the root  
grammar, which I assume is HTML (which include your PHP grammar). So  
you will (unfortunately) need to add these patterns to the HTML grammar.




More information about the textmate mailing list