Home Download Buy Blog Forum Support

Chained / multiple extensions?

Chained / multiple extensions?

Postby amiken on Wed Nov 16, 2011 5:56 pm

Hi everyone, I'm new here - loving sublime so far but got a question:

How do I set extension mapping for files with chained extensions? For example:

.erb -> Rails HTML
.scss -> SASS

But I'd like:

.scss.erb -> SASS

Is that possible? Thanks!
amiken
 
Posts: 1
Joined: Wed Nov 16, 2011 5:54 pm

Re: Chained / multiple extensions?

Postby C0D312 on Wed Nov 16, 2011 8:24 pm

Check out the SetSyntax plugin (https://github.com/SublimeText/SetSyntax) It should allow you to do that.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Chained / multiple extensions?

Postby jackocnr on Wed Jan 09, 2013 11:44 pm

Just in case anyone else finds this, you can now just open a file with the right extension e.g. file.scss.erb and then click the syntax thing in the bottom right and select "Open all with current extension as..."
jackocnr
 
Posts: 5
Joined: Wed Mar 07, 2012 9:35 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 16 guests