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, and for TextMate to remember that I told it that this particular file is CSS. Probably not enough people with this same problem to worry about it though! Thanks for the response.
On Mar 9, 2007, at 5:50 PM, Charilaos Skiadas wrote:
On Mar 9, 2007, at 7:27 PM, Michael Jackson wrote:
Hello all,
I'm not sure if this is possible in TextMate, so I thought I'd ask. In any given project, I'm working with lots of different languages: HTML, PHP, CSS, JavaScript, Java, etc. I find that when I have all of these files open at the same time (in a project window), I'll set the language for the file I'm currently working on in the bottom language bar, and then when I switch to a different file TextMate just stays in that language I was working in, even though the new file is actually a different language! This happens even if I go through each file and set its language manually before switching between them. Is there something I'm missing? If not, I would absolutely love to see this in 2.0!
Thanks in advance,
This should not be happening, unless those files all have the same extension. Once you send language type for a particular extension, TM remembers it for all other files of that extension, but other than that it should really use different language for each file.
Michael
Haris Skiadas Department of Mathematics and Computer Science Hanover College
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