Sublime Text uses the same syntax highlighting as TextMate. Grammar can be found here . I would recommend working in JSON and then converting to XML, as it is easier (at least for me) to read. The PackageDev plugin will give you the source snippet for defining the new syntax. It also contains syntax highlighting for configurations, as well as a Plist to JSON converter. The following is a snippet from the protobuf syntax definition file that highlights certain words. As for the colors of the highlights, you'll have to browse your color scheme file. In the example below, you will look for the "constant.language" area for the color used. You probably don't need to edit the color scheme unless you want something else other than what's already built into your scheme.
{ "name": "Protocol Buffers", "scopeName": "source.proto", "fileTypes": ["proto"], "patterns": [{ "match": "\\b(bool|bytes|double|fixed32|fixed64|float|int32|int64|sfixed32|sfixed64|sint32|sint64|string|uint32|uint64)\\b", "name": "constant.language.proto" }], "uuid": "8c8714d5-43ef-43d2-abd9-c9088901ddd5" }
skuroda Mar 06 '13 at 0:48 2013-03-06 00:48
source share