[SVN] Re: Any chance of a little help sorting this language regexp to make php coding less painful in textmate?

Chris Adams wave at chrisadams.me.uk
Tue Dec 14 22:41:02 UTC 2010


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 <mailinglist at textmate.org> 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
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate-dev
>



-- 
Chris Adams
mob: 07974 368 229
tel: 0207 558 8971
skype: chris.d.adams
twitter: mrchrisadams


More information about the textmate-dev mailing list