Add Sublime Syntax Highlighting for Squarespace Template Files

Here's how to prettify your developer template files and make sure that Sublime text automatically adds syntax highlighting.


Way 1

  1. Open the file you want to associate a file type extension with i.e. template.conf
  2. On the bottom right corner, click on the current language, usually 'Plain Text'.
  3. Go to Open all with current extension as...
  4. Select the language you want to open all those files as.

Way 2

Go to Sublime Text 2 > Preferences > Browse Packages

Look for:


Add filetype strings before </array>.


Edit HTML.tmLanguage


Javascript > JSON

Edit HTML.tmLanguage