Sublime Forum

Color Scheme Documentation/API?

#1

I’ve been making a few themes there and there but I am a bit at a lost of how I can edit certain colors etc. Is there a place where I can look at all of the values I can actually change for color schemes (aka .tmtheme files)?

Thank you! :smile:

0 Likes

#2

Pressing ctrl+shif+alt+p with cursor place anywhere, you can see the current scope in statusbar:

http://content.screencast.com/users/iamntz/folders/Jing/media/0c99051c-752c-4e18-a30c-cb7c4a101406/2012-07-24_0841.png

This wold be a good start, because most languages follow the same pattern (brackets, function definition, variables etc).

Oooor, you can start hacking monokai or any other theme available for sublime/textmate :smile:

0 Likes

#3

Anyone else? :frowning:

0 Likes

#4

Maybe the textmate documentation can help?
manual.macromates.com/en/language_grammars
manual.macromates.com/en/themes

You should be able to set a color for any of the scopes defined in a language definition. The difficulty comes because the scopes ban be defined inconsistently between the various language definitions…

0 Likes