Sublime Forum

Chained / multiple extensions?

#1

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!

0 Likes

#2

Check out the SetSyntax plugin (https://github.com/SublimeText/SetSyntax) It should allow you to do that.

0 Likes

#3

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…”

0 Likes