Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.)

like image 351
Nick Heiner Avatar asked Oct 08 '12 16:10

Nick Heiner


1 Answers

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

  1. Unzip the downloaded file. It contains a file named typescript.tmlanguage
  2. 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)
  3. Drop typescript.tmlanguage into your newly created TypeScript folder.
like image 160
Claudijo Avatar answered Oct 09 '22 16:10

Claudijo