views:

231

answers:

1

I've been using Textmate for Ruby/Python scripting for awhile and now have a need to hack on some PHP. I'm having some troubles with the bundle:

  1. The code-highlighting doesn't support HTML...
  2. When I type php + tab TM spits out:

    ?><?php>
    

    instead of:

    <?php ?>
    

Anyone know where I could possibly be going wrong? Thanks in advance...

+5  A: 

Change your file type to HTML (even if you are editing a .php file!) would solve the problem.

QAD
Thanks, man. How could it be so simple?
I think the reason for that is you only need one <?php at the beginning of a PHP file; thus, typing php + tab means you want to insert some HTML in between.
QAD