<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Sep 17, 2010, at 1:50 PM, Timothy Mackey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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?</span></blockquote><div><br></div>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.</div><div><br></div><div><a href="http://manual.macromates.com/en/language_grammars">http://manual.macromates.com/en/language_grammars</a></div><div><br></div><div><blockquote type="cite"><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">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></blockquote></div><div><br></div><div>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.</div><div><br></div><div>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.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">-- <br>Rob McBroom<br><<a href="http://www.skurfer.com/">http://www.skurfer.com/</a>><br></span>
</div>
<br></body></html>