Home Download Buy Blog Forum Support

Syntax highlighting and custom themes

Syntax highlighting and custom themes

Postby SecretUser on Fri May 30, 2014 12:47 pm

I'm creating a new syntax .tmLanguage file but found that the colors in the default Monokai theme is pretty limited so I've created my own theme to give more variety to the colors.
Now when I select my syntax, I also have to switch theme to get the right colors. Is there a way to auto switch to the correct theme for that syntax file? Can you set a default theme for a syntax?
SecretUser
 
Posts: 1
Joined: Fri May 30, 2014 12:40 pm

Re: Syntax highlighting and custom themes

Postby Orlmente on Fri May 30, 2014 5:25 pm

Preference -> Settings - More -> Syntax Specific - User
then just put the following in it:
Code: Select all
{
    "color_scheme": "%PATH_TO_DESIRED_THEME%/%DESIRED_COLOR_SCHEME_NAME%.tmTheme"
}
Orlmente
 
Posts: 103
Joined: Mon Mar 18, 2013 12:37 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests