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.
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.On Sep 17, 2010, at 1:50 PM, Timothy Mackey wrote:
Hi, is there any support in TextMate for PHP's Alternate Syntax?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.
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate