Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load a tmlanguage file into SubLime Text 2?

Tags:

I have downloaded a typescript.tmlanguage so that I can have typescript syntax highlighting in the Sublime Text 2 editor. How do I load this file in the editor? (I have searched the editor's manual but there is no clear answer on this one) Thank you.

like image 200
skiabox Avatar asked Oct 06 '12 18:10

skiabox


People also ask

How to add language to Sublime Text?

To enable Syntax Highlighting click on “View” in the top bar, then hover your mouse over “Syntax”, and select your programming language from the list. Alternatively, if you save a document with a supported file extension, Sublime Text 3 will automatically apply the Syntax Highlighting for that language.

Where do sublime-syntax files go?

sublime-syntax should be pushed onto the context stack. It also defines another key, with_prototype . This contains a list of patterns that will be inserted into every context defined within JavaScript.

What is Tmlanguage?

Language grammar file used by TextMate, a Mac OS X source code editor; contains a specification for the syntax of a programming language; used for adding syntax highlighting support for additional languages. TMLANGUAGE files are saved using XML formatting but may be encoded with a binary representation of the XML data.

Can Sublime Text open large files?

For the situation like working with a 13GB file, my hunch would be to say that Sublime Text is likely not the correct tool for the job. I would probably recommend processing it with some code and breaking it into chunks that you can then manipulate separately, filter, etc.


1 Answers

You should create Typescript directory in your Packages directory and put typescript.tmLanguage in it.

Packages directory can be found with menu Preferences/Browse Packages....

like image 104
Riccardo Marotti Avatar answered Sep 23 '22 12:09

Riccardo Marotti