[TxMt] Re: Support for PHP Alternate Syntax

Timothy Mackey timd.mackey at gmail.com
Fri Sep 17 18:46:14 UTC 2010

Thanks Rob, your answer is helpful. Yes, I should have mentioned that the
syntax highlighting is working correctly. It's unfortunate that there isn't
built-in support for code folding for this syntax, but maybe it will come in
a later release :-). In the meantime, i guess I'll have to see if it's
something that I would be capable of doing myself.

The more important thing for me, though, is the snippet autocomplete, so I'm
glad that it will be easy for me to change. Thanks for the tips!

On Fri, Sep 17, 2010 at 11:34 AM, Rob McBroom <mailinglist0 at skurfer.com>wrote:

> On Sep 17, 2010, at 1:50 PM, Timothy Mackey wrote:
> Hi, is there any support in TextMate for PHP's Alternate Syntax?
> Your example seems to highlight correctly, but I see what you mean about
> the folding. You'd have to go into the bundle editor and change the PHP
> Language. That will not be an easy project, but if you want to try, you
> should probably look at that section of the manual.
> http://manual.macromates.com/en/language_grammars
> At the moment, I can't find a way to get code-folding working with the
> alternate syntax, and I would also like to be able to set TextMate's TAB
> auto-complete to use the alternate syntax.
> The second part is pretty easy. Just go into the bundle editor and find the
> snippets you want to edit (if, if …else, etc.) and change them.
> The only thing I would add is that you should always use hard tabs to
> indent your snippets even if you hate tabs with a passion. When you actually
> use the snippet, TextMate will replace a hard tab with whatever your
> preferences are for that language.
> --
> Rob McBroom
> <http://www.skurfer.com/>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100917/739f7704/attachment.html>

More information about the textmate mailing list