Home Download Buy Blog Forum Support

How to specify brace colour in themes.

How to specify brace colour in themes.

Postby radiosilence on Wed Sep 22, 2010 8:53 pm

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?
radiosilence
 
Posts: 5
Joined: Sun Sep 20, 2009 6:18 pm

Re: How to specify brace colour in themes.

Postby tgkeul on Thu Sep 23, 2010 4:54 am

You have to make a regular expression for braces etc. in your tmLanguage file tht matches an entry in your tmThme file.
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: How to specify brace colour in themes.

Postby radiosilence on Fri Sep 24, 2010 3:01 pm

Is there a global language grammar?

I'm trying to add this in my language:

Code: Select all
<dict>
               <key>match</key>
               <string>([\[\]\)\(\}\{])</string>
               <key>name</key>
               <string>testbrace</string>
            </dict>


And this in my theme:

Code: Select all
      <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 :)
radiosilence
 
Posts: 5
Joined: Sun Sep 20, 2009 6:18 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 21 guests