ZOMG! I've just added it to my standard HTML syntax grammar, and it worked a treat!
I can't express how much this changes my experience of using Textmate for the better when working with Drupal code. What's the preferred way for me share this so some other poor soul can benefit from this ? I assumed html was akin to 'core' , so I doubt it's as simple as making bundle (although my textmate bundle making knowledge is rather limited) Anyway, I've updated the gist above now to include the syntax, and the last commit should give a clean diff showing the change I made if anyone else wants the same behaviour on their editor. https://gist.github.com/736311 On 14 December 2010 20:10, Allan Odgaard <[email protected]> wrote: > On 14 Dec 2010, at 21:06, Gabriel Gilder wrote: > >> I took a look and I can't make it work either... I also noticed that none of >> the built-in folding markers besides curly brackets are working. From the >> definition it looks like folding should be applied to multiline comments and >> heredoc strings, but neither of those is triggering folding for me. > > The PHP foldings are used for “raw” PHP files. I.e. those with a PHP shebang > (of which there are close to none). > > Actual “.php” files are parsed with the HTML grammar and get their folding > patterns from this (root) grammar. > > Sorry about the confusion — it is something I would like to “fix” (so folding > patterns “change” with included grammars). > > _______________________________________________ > textmate-dev mailing list > [email protected] > http://lists.macromates.com/listinfo/textmate-dev > -- Chris Adams mob: 07974 368 229 tel: 0207 558 8971 skype: chris.d.adams twitter: mrchrisadams _______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
