[TxMt] language mode is not per tab/file?

Xavier Noria fxn at hashref.com
Mon Nov 7 08:05:05 UTC 2005


On Nov 7, 2005, at 5:06, Allan Odgaard wrote:

>> [...] There's a file ending in .pm that is strictly a Perl module,  
>> but that actually is mostly C except for a few lines, since it  
>> uses Inline::C. I need C mode there to work normally.
>
> If this is official syntax, I can add a rule to the Perl language  
> grammar to support it.

Hmmm, maybe it is not necessary, I see a modeline like this already  
works (I think I tried this before without luck, maybe I didn't leave  
a space after the colon)

     # -*- Mode: C -*-

and is per file according to my trials. That's fine!

-- fxn



More information about the textmate mailing list