Sunday, January 25, 2015

Mako Syntax in Sublime Text

For all of you who are using Sublime Text as you text editor you will find that it currently doesn't support the HTML (Makosyntax highlighting and this can be some what annoying. I found a plugin for the the Syntax the following tutorial that will help you to get it up and running. I'm on a MAC, but the process is fairly similar for Windows users.

1. Download the package from the following GitHub repo:

2. Open sublime text and go to Preferences -> Browse Packages. This should open up the Packages in the Finder. Move the downloaded file into the Packages directory. 

3. In order to make it work I had to remove the code below from the HTML (Mako).tmLanguage file which is located in the Syntaxes folder.
Search for #embedded-code which is located 4 times throughout the document and all four instances need to be removed.

4. Close and re-open Sublime. Press Command-Shift-P and type HTML (Mako). Select the Set Syntax: HTML (Mako) option and you should be good to go!

Let me know of any errors in the tutorial. 

Happy Coding!


  1. Remember if you download the .zip version from github you have to unzipped it before put in packages directory.