Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put .tmLanguage in sublime text 3?

I'm having trouble with Ruby syntax highlighting in combination with RegExp.

Someone suggested that I update my Ruby.tmLanguage file with some additional code.

Problem is, I can't locate this file on my computer. Inside sublime_text_3/Packages I only see .sublime-package files, which I can't properly open with sublime text; it only shows numbers.

Do I have to create this file myself, and if so, where?

Or does this work differently in sublime text 3 (as opposed to 2, which was probably the latest version when this solution got posted).

reference to additional Ruby.tmLanguage code: https://gist.github.com/elgalu/3921521

like image 682
Kappie001 Avatar asked Mar 22 '23 18:03

Kappie001


1 Answers

Those .sublime-package files are actually zip files in disguise. The default Ruby.tmLanguage file can be extracted from Ruby.sublime-package. Open it with some sort of archive manager. Copy and rename the extension to .zip if you have to.

Once you've made the changes in Ruby.tmLanguage, the modified file goes somewhere in your packages folder (I can't remember exactly where), which you can open from ST by going to Preferences > Browse Packages.

like image 164
Inkling Avatar answered Apr 13 '23 21:04

Inkling