Change Textmate syntax highlighting?

I recently started working with Objective-C in Textmate and noticed that the syntax highlighting is pretty bad (the comment is the same color as the variable declaration). I have never done syntax emphasizing changes to Textmate, and it's hard for me to figure out how to change it correctly. For example, the comment volume in the Objective-C file: source.objc.iphone meta.implementation.objc meta.scope.implementation.objc meta.function-c-body.objc

but changing colors on this changes more than just comments.

Does anyone know of a good place to start learning how to do this?

+4
source share
1 answer

You can check the area of ​​your current cursor with ^ + Shift + P or Bundles> Bundle Development> Show Scode. Once you know the scope, you can create / change its color. If a comment is not detected by the grammar of the language, you should expand it. See the documentation for more information: http://manual.macromates.com/en/language_grammars#language_grammars

+7
source

All Articles