Add .ts language files to Sublime Text to support additional syntax coloring

sublimetext2, typescript

Solution

To add TypeScript syntax highlighting support to Sublime Text on Mac:

- Unzip the downloaded file. It contains a file named typescript.tmlanguage

- Create a subfolder in your sublime Package folder called TypeScript. (The path to the Packages folder for Sublime Text 2 on Mac is: `/Users/{user}/Library/Application Support/Sublime Text 2/Packages)`

- Drop typescript.tmlanguage into your newly created TypeScript folder.

Problem

I'm trying to add Typescript syntax highlighting support, which is provided by MSFT. However, I don't know what to do with that downloaded .zip to make Sublime recognize `.ts` files. I tried adding it to `Installed Packages/Typescript`, or just `Installed Packages`, but that hasn't worked. (I also tried extracting the `.tmlanguage` file and putting that in `Installed Packages/Typescript`. What is the right way to do this? (I'm on Mac OS X 10.8 with Sublime text 2.0.1.)

Original source

Related problems