Working in ASP.NET MVC I am mostly a front-end dev and prefer to code in TextMate but the files for the spark view engine are .spark even though the vast majority of the content of these files is HTML -- I want TextMate to treat these as HTML so that I can use standard TextMate HTML commands and bundle features.
How would I go about doing this?
On Nov 12, 2009, at 10:19 AM, migofast wrote:
Working in ASP.NET MVC I am mostly a front-end dev and prefer to code in TextMate but the files for the spark view engine are .spark even though the vast majority of the content of these files is HTML -- I want TextMate to treat these as HTML so that I can use standard TextMate HTML commands and bundle features.
How would I go about doing this?
If you open a .spark file in TextMate, then set the language to HTML (using the menu on the status bar at the bottom of the window), it will treat all .spark files as HTML in the future.
Duhhh -- Sweet works perfect
On 12 Nov 2009, at 11:35, Rob McBroom wrote:
If you open a .spark file in TextMate, then set the language to HTML (using the menu on the status bar at the bottom of the window), it will treat all .spark files as HTML in the future.
Which seems like a major mis-feature to me. I open lots of files ending in .txt. Most are plain text, but some are some other type that benefits from different syntax coloring. I *hate* that language types are sticky this way. Just because I want to view one file in a different manner doesn't mean I want to view *all* files that way. I want to set it once for the common case (plain text), then only change it for the files which are something else.
Allan, add this to the wishlist for TextMate Forever-- I mean, TextMate 2. :-)
On Nov 12, 2009, at 1:08 PM, King, Steven wrote:
Which seems like a major mis-feature to me. I open lots of files ending in .txt. Most are plain text, but some are some other type that benefits from different syntax coloring. I *hate* that language types are sticky this way. Just because I want to view one file in a different manner doesn't mean I want to view *all* files that way. I want to set it once for the common case (plain text), then only change it for the files which are something else.
I'd say this is a problem at the OS level in general. The whole "extension = type" assumption. Name and type should be stored in different places, but Apple hasn't gotten [back] there yet.