Category Archives: Sublime Text 2

Sublime Text reading SASS files as HAML

If this is happening for you and you want to fix it the quickest way do do this is to edit Ruby Hamil.tmLanguage on Mac OS X this can be found at the following location: /Library/Application Support/Sublime Text 2/Packages/Rails/Ruby Haml.tmLanguage.

Once you have it open look for the line <string>sass</string> and delete it.

As soon as you save the document it should no longer associate SASS files as HAML, now this isn’t the case the SASS syntax should take over (assuming you have downloaded it).

Share this on

Adding plugins to Sublime Text 2

When I first started using Sublime Text 2 I was a little taken back at the apparent awkwardness of setting up plugins, or packages as they are natively called.

My apprehension was misguided because installing packages is incredibly easy.

There are a handful of package managers you can use for Sublime Text 2 but today I am going to talk about installing a package that you found on Github or some other place where all you have are the source files.

First we need to find a package, as an example lets use this WordPress snippet plugin, we need to download or clone it onto our machine – if you download the zipped version you should extract it before continuing.

Now from within Sublime Text 2 you should go to Preferences > Browse Packages, a window should appear that houses all your packages.

Next we need to find where the folder is we just downloaded and drag it into the package directory.

That is it! In this instance we didn’t have to restart Sublime Text 2 but I have seen some packages that require it.

Share this on