在.tmLanguage中将升华文字3放在哪里? [英] Where to put .tmLanguage in sublime text 3?

查看:70
本文介绍了在.tmLanguage中将升华文字3放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将Ruby语法突出显示与RegExp结合使用时遇到麻烦.

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

有人建议我用一些其他代码更新Ruby.tmLanguage文件.

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

问题是,我在计算机上找不到此文件.在sublime_text_3/Packages内部,我只看到.sublime-package文件,我无法用sublime文本正确打开它.它只显示数字.

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?

或者在崇高的文字3(而不是2,它可能是发布此解决方案时的最新版本)中的工作方式有所不同.

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

对其他Ruby.tmL语言代码的引用: https://gist.github.com/elgalu/3921521

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

推荐答案

这些.sublime-package文件实际上是变相的zip文件.可以从Ruby.sublime-package中提取默认的Ruby.tmLanguage文件.用某种存档管理器打开它.如果需要,将扩展名复制并重命名为.zip.

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.

一旦您在Ruby.tmLanguage中进行了更改,修改后的文件就会放在您的packages文件夹中的某个位置(我不记得确切的位置),您可以从ST转到首选项">浏览软件包"来打开它.

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.

这篇关于在.tmLanguage中将升华文字3放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆