Where to put .tmLanguage in sublime text 3?

↘锁芯ラ 提交于 2019-12-07 09:36:55

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/19790062/where-to-put-tmlanguage-in-sublime-text-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!