编辑 Textmate 语法突出显示?
我最近开始在 Textmate 中使用 Objective-C,并注意到语法突出显示相当差(注释的颜色与变量声明的颜色完全相同)。 我从未在 Textmate 中做过语法突出显示更改,并且无法弄清楚如何正确修改它。 例如 Objective-c 文件中注释的范围是: 源.objc.iphone 元实现.objc 元范围实现.objc meta.function-with-body.objc
但更改颜色的变化不仅仅是注释。
有谁知道开始学习如何做到这一点的好地方?
I have recently begun working with Objective-C in Textmate and noticed that the syntax highlighting is rather poor (a comment is the exact same color as a variable declaration).
I've never done syntax highlighting changes in Textmate and I'm having trouble figuring out how to correctly modify it.
For example the scope of a comment in an Objective-c file is:
source.objc.iphone
meta.implementation.objc
meta.scope.implementation.objc
meta.function-with-body.objc
but changing the colors on that changes alot more than just comments.
Does anyone know of a good place to start learning how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 ^ + Shift + P 或 Bundles > 查看当前光标的范围。 捆绑开发> 显示代码。
了解范围后,您可以创建/更改它的颜色。
如果语言语法无法检测到注释,则必须扩展它。 请参阅文档以获取更多信息:
http://manual.macromates.com/en/language_grammars#language_grammars
You can check the scope of your current cursor with ^ + Shift + P or Bundles > Bundle Development > Show Scode.
After you know the scope, you can create / change the color of it.
If the comment is not detected by the language grammar, you have to extend it. See the documentation for further information:
http://manual.macromates.com/en/language_grammars#language_grammars