[TxMt] Re: Support for PHP Alternate Syntax

Rob McBroom mailinglist0 at skurfer.com
Fri Sep 17 18:34:03 UTC 2010

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.


> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100917/b43213ed/attachment.html>

More information about the textmate mailing list