Home Download Buy Blog Forum Support

Change Color of Folding Start & End Markers?

Change Color of Folding Start & End Markers?

Postby mikeb on Sun Sep 20, 2009 8:17 pm

I am working on a language file and would like to make the folding start & end markers in a different color. I have the following in my .tmLanguage file:
Code: Select all
    <key>foldingStartMarker</key>
    <string>\(</string>

I have tried a number of settings in both the patterns section of the language file and in the .thTheme file as well but none seem to take effect. Is it possible to get the folding markers to display in a different color, and if so how? Thanks!
mikeb
 
Posts: 31
Joined: Mon Sep 07, 2009 12:33 am

Re: Change Color of Folding Start & End Markers?

Postby jps on Sun Sep 20, 2009 9:22 pm

Code folding isn't supported yet, so the portions of the .tmLanguage files that refer to folding are ignored.

If you want to change the colour assigned to brackets, you should be able to add an entry for meta.parens to the .tmTheme file, assuming your .tmLanguage file defines that (C does, for example)
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Change Color of Folding Start & End Markers?

Postby mikeb on Mon Sep 21, 2009 12:29 am

Thanks a bunch, I got it working. On the code folding not being supported yet, to be honest with the mini-map I don't think I personally would need code folding.
mikeb
 
Posts: 31
Joined: Mon Sep 07, 2009 12:33 am


Return to General Discussion

Who is online

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