Sublime Forum

Change Color of Folding Start & End Markers?

#1

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:

    <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!

0 Likes

#2

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)

0 Likes

#3

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.

0 Likes