Home Download Buy Blog Forum Support

Forgets syntax setting on files without extension

Forgets syntax setting on files without extension

Postby masterkain on Wed Jan 25, 2012 6:28 pm

Since few releases ago even a file called Gemfile (which uses Ruby syntax) was able to get its syntax remembered through Open all with current extension as...

Now when we do open such files they are always being treated as Plain Text, and we have to choose the syntax everytime.
masterkain
 
Posts: 6
Joined: Wed Jan 25, 2012 6:25 pm

Re: Forgets syntax setting on files without extension

Postby phillip.koebbe on Wed Jan 25, 2012 6:44 pm

<shameless plug>
You could try the DetectSyntax plugin. By default, it assigns Gemfile and Gemfile.lock the Ruby on Rails syntax, but you could change it in the settings to just Ruby if you wanted. Install it through Package Control. There are plenty of comments in the default settings file to get you started.
</shameless plug>
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
end
phillip.koebbe
 
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Re: Forgets syntax setting on files without extension

Postby masterkain on Mon Jan 30, 2012 12:56 am

Thanks, however I see it being fixed in the last releases.

Cheers
masterkain
 
Posts: 6
Joined: Wed Jan 25, 2012 6:25 pm

Re: Forgets syntax setting on files without extension

Postby masterkain on Sat Feb 04, 2012 9:13 am

Actually I have to correct myself, it's not really fixed, it's just that a plugin probably recognized the Gemfile as ruby automatically.

Guardfile for example, even if I set to always open as ruby, does not store the preference because the file has no extension.
masterkain
 
Posts: 6
Joined: Wed Jan 25, 2012 6:25 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 23 guests