Textmate and PHP - some package problems

I've been using Textmate for Ruby / Python scripting for a while now and now you need to hack some PHP. I have problems with the bundle:

  • Code highlighting does not support HTML ...
  • When I type php

    + tab TM it spits out:

    ?><?php>
    
          

    instead:

    <?php ?>
    
          

Does anyone know where I could go wrong? Thanks in advance...

+1


a source to share


2 answers


Changing your file type to HTML (even if you are editing the .php file!) Will fix the problem.



The reason for this is documented at http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight

+7


a source


No, it is best to set the language to "HTML" on the bottom status bar.

status bar, change to "HTML"



you may still have the filename terminated by php

+1


a source







All Articles