Did that happen to anyone before?
When I switch from HTML to PHP files, TM doesn't switch the syntax highlighting automatically anymore... If I select it from the language menu I get my syntax coloring, but then switching back to HTML, it doesn't revert back to HTML highlighting... I constantly have to manually switch the language from PHP to HTML...
I tried to look into the bundle and PHP doesn't have a "filetypes" but I don't think it's supposed to anyway right?
Plus I thought the HTML bundle included the PHP one no? Or did that revert back to separate languages in the bundle editor?
Thanks for any suggestion
- Yann ......................................... Yann Bettremieux Multimedia Producer
m i n i m a l d e s i g n 244 Fifth Avenue Suite P233 New York, NY 10001-7604 USA
tel / fax: 212.931.8525 email: yann@minimaldesign.net site: http://minimaldesign.net/
On 15/8/2006, at 4:33, minimal design wrote:
I tried to look into the bundle and PHP doesn't have a "filetypes" but I don't think it's supposed to anyway right?
It is not, no. The HTML grammar should be used both for HTML and PHP files.
Plus I thought the HTML bundle included the PHP one no? Or did that revert back to separate languages in the bundle editor?
It does -- I did recently make some changes in the way PHP is included, so that it is now possible to use PHP as the grammar for PHP files (not that I recommend it, as one loses HTML tag matching, but I did it do cut down on support incidents.)
Now these changes were done to both the PHP and HTML grammar, and if you have a customized version of either, the new scheme used (to include PHP) will not work.
So I would recommend trying to revert [1] the PHP and HTML bundles/ language grammars to their default version.
[1] http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles