I don't know if it's the "official" way, but when I do this, I set the "document type" from PHP to HTML.
The <?php ?> parts will be highlighted as php, javascript as javascript, html as html.
As I don't have TM with me right now, I can't tell if that actually answers your question or not.
Karel
Odesláno z iPhone
17.9.2010 v 19:50, Timothy Mackey timd.mackey@gmail.com:
Hi, is there any support in TextMate for PHP's Alternate Syntax?
e.g. Regular Syntax:
<?php if (1 == 1) { //Output } else { //Output } ?>
e.g. Alternate Syntax:
<?php if (1 == 1): //Output else: //Output endif; ?>
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.
Tim Mackey
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate