On 11 Feb 2008, at 21:46, Nate Cavanaugh wrote:
Thanks for the reply, but I'm now trying to get this to work, and for some reason, it's still treating each of the files identically.
Is there some special method for changing the language that I should be using?
For instance, I have css_cached.jsp. I copied that file and have css_cached.css.jsp. Whenever I change the language type it does it for all jsp's, like before.
Any suggestions?
If you use double-extensions, you will need to edit the fileTypes array in the grammar, as TM is not smart enough to automatically learn about these.
See e.g. http://blog.macromates.com/2007/file-type-detection-rspec-rails/
Allan Odgaard-3 wrote:
On 8 Jan 2008, at 19:38, Nate Cavanaugh wrote:
[...] Quick question, do you know if this is possible with TabMate *without* modelines? I'm working on a huge code base with multiple users and strict coding standards and the modelines aren't allowed to sit in SVN, which means I have to copy the mode lines every time I edit the file, in which case, I might as well just manually change the language.
Anyone know of a work around (even if it's a work around in SVN)?
TextMate will get the file type either from the first line of the file or the extension. The recommended solution is to use double- extensions when it is important that different file types have the same “final” extension, e.g. “foo.css.php”, “foo.js.php”, “foo.php” -- here all files are php, but TextMate can assign different grammars to them based on the secondary extension.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-- View this message in context: http://www.nabble.com/Changing-language-for-a-specific-file-tp14630274p15420... Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate