Where to place .tmLanguage in sublime text 3?

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

Someone suggested I update the Ruby.tmLanguage file with additional code.

The problem is that I cannot find this file on my computer. Inside sublime_text_3 / Packages, I see only .sublime-package files that I cannot open correctly with sublime text; it shows only numbers.

Should I create this file myself, and if so, where?

Or it works differently in sublime text 3 (as opposed to 2, which was probably the latest version when this solution was published).

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

+4
source share
1 answer

These .sublime-package files actually hide the zip files. The default Ruby.tmLanguage file can be extracted from the Ruby.sublime package. Open it with some archive manager. Copy and rename the extension to .zip if you need to.

After making changes to Ruby.tmLanguage, the changed file is sent somewhere to the folder with your packages (I don’t remember exactly), which you can open from ST by choosing Settings> Browse Packages.

+7
source

All Articles