Yes, as long as tags can be identified as having different scopes with language definitions set, you can change your color scheme to target these areas with specific colors and other styles.
In the package folder, the language areas are defined in the .tmLanguage files for the installed languages, and the styles are defined in the .tmTheme files in the "default color scheme" folder.
If you place the cursor inside the tag and press shift + ctrl + alt + p ( shift - cmd -p in OSX, I think), the status bar displays the current volume. You can also copy this to the clipboard via the console with this command:
sublime.set_clipboard(view.syntax_name(view.sel()[0].b))
You can use this information to create your own styles, a bit like css selectors, but with XML. For example, I use this Coldfusion package and I have the area selectors shown below in my .tmTheme file to distinguish cf tags from HTML tags.
<dict> <key>name</key> <string>Tag name</string> <key>scope</key> <string>entity.name.tag</string> <key>settings</key> <dict> <key>background</key> <string>#D8D0B6</string> <key>fontStyle</key> <string>bold</string> <key>foreground</key> <string>#647A4F</string> </dict> </dict> <dict> <key>name</key> <string>CF tag name</string> <key>scope</key> <string>entity.name.tag.conditional.cfml, entity.name.tag.declaration.cfml, entity.name.tag.other, entity.name.tag.cf, entity.name.tag.inline.other.cfml</string> <key>settings</key> <dict> <key>background</key> <string>#D8D0B6</string> <key>fontStyle</key> <string>bold</string> <key>foreground</key> <string>#990033</string> </dict> </dict>
Learn more about area selectors .
Jeremy Halliwell Feb 19 '12 at 11:08 2012-02-19 11:08
source share