<html><body bgcolor="#FFFFFF"><div>I don't know if it's the "official" way, but when I do this, I set the "document type" from PHP to HTML. </div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div>The <?php ?> parts will be highlighted as php, javascript as javascript, html as html.</div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">As I don't have TM with me right now, I can't tell if that actually answers your question or not.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Karel </span><br></div><div><br>Odesláno z iPhone</div><div><br>17.9.2010 v 19:50, Timothy Mackey <<a href="mailto:timd.mackey@gmail.com">timd.mackey@gmail.com</a>>:<br><br></div><div></div><blockquote type="cite"><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi, is there any support in TextMate for PHP's Alternate Syntax?<div><br><div>e.g. Regular Syntax:</div>
<div><?php</div><div>if (1 == 1) {</div><div> //Output</div><div>}</div><div>else {</div><div> //Output</div><div>}</div><div>?></div><div><br></div><div>e.g. Alternate Syntax:</div></div><div><div><?php</div>
<div>if (1 == 1):</div><div> //Output</div><div>else:</div><div> //Output</div><div>endif;</div><div>?></div></div><div><br></div><div>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.</div>
<div><br></div><div><br></div><div>Tim Mackey</div></span>
</div></blockquote><blockquote type="cite"><div><span></span><br><span>_______________________________________________</span><br><span>textmate mailing list</span><br><span><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a></span><br><span><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></span><br></div></blockquote></body></html>