[TxMt] Way to remember what language I'm using

Michael Jackson mjijackson at gmail.com
Sat Mar 10 16:50:50 UTC 2007


On Mar 9, 2007, at 11:57 PM, Allan Odgaard wrote:

>> Ah yes. Some of the files that I work on actually do have the same  
>> extension, but I'd like them to be highlighted in different  
>> languages. For example, sometimes I generate CSS files with php.  
>> The file will be named something like: style.css.php. What I would  
>> like to do is tell TextMate that, even though this file has a php  
>> extension, it's really CSS,
>
> If you go to the bundle editor and locate the CSS language grammar,  
> you can put ‘css.php’ in the file types array, that should make it  
> treat files with this double extension as CSS.

I tried to follow these instructions but no luck. I modified the  
fileTypes array in the CSS language file to look like this:

fileTypes = ( 'css', 'css.php' );

but TM still won't recognize the css.php extension as CSS. Instead,  
it reverts to PHP every time. Any ideas as to why this is happening?


More information about the textmate mailing list