Home Download Buy Blog Forum Support

Color Scheme Documentation/API?

Color Scheme Documentation/API?

Postby bananaman on Tue Jul 24, 2012 5:11 am

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! :)
bananaman
 
Posts: 3
Joined: Tue Jul 24, 2012 5:09 am

Re: Color Scheme Documentation/API?

Postby iamntz on Tue Jul 24, 2012 5:45 am

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

Image

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 :)
iamntz
 
Posts: 918
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Color Scheme Documentation/API?

Postby bananaman on Tue Jul 24, 2012 7:37 pm

Anyone else? :(
bananaman
 
Posts: 3
Joined: Tue Jul 24, 2012 5:09 am

Re: Color Scheme Documentation/API?

Postby jbjornson on Wed Jul 25, 2012 8:43 am

Maybe the textmate documentation can help?
http://manual.macromates.com/en/language_grammars
http://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...
jbjornson
 
Posts: 353
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 17 guests