Have googled around and not found anything useful. I’m editing my .tmTheme file (mod of twilight), and I want to change the colour of braces/brackets/etc. How do I do this? What do I need to add?
How to specify brace colour in themes
tgkeul
#2
You have to make a regular expression for braces etc. in your tmLanguage file tht matches an entry in your tmThme file.
0 Likes
radiosilence
#3
Is there a global language grammar?
I’m trying to add this in my language:
<dict>
<key>match</key>
<string>(\\]\)\(\}\{])</string>
<key>name</key>
<string>testbrace</string>
</dict>
And this in my theme:
<dict>
<key>name</key>
<string>Test Brace</string>
<key>scope</key>
<string>testbrace</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FF0000</string>
</dict>
</dict>
But it doesn’t seem to be working. What am I doing wrong?
Edit: restarted sublime. Apparently it does work
0 Likes