Sublime Forum

Best way to use same styles on different themes for new .sublime-syntax?

#1

Hi everyone,
I made a .sublime-syntax file for writers at work (not tech savvy people, and me not much better), and the problem is, because everyone uses a different color scheme, on some themes new syntax looks ok and on others it’s terrible. What would be a best way to solve this?
I though maybe it’d be nice to have a separate .tmTheme file with only four entrees for my syntax and change colors in it, but I don’t think it’s possible to use several tmThemes in the same time?
Thanks,
Sergey

0 Likes

#2

The best option is to have both the syntax definition and the color scheme(s) follow the scope naming conventions: https://www.sublimetext.com/docs/3/scope_naming.html

If some color schemes don’t follow them, try yelling at the athors. Otherwise, you can provide “backup scopes” by including multiple scope names in a scope assignment within the syntax definition.

2 Likes

#3

Ooh, perfect, I followed the naming and highlights look much more consistent between themes. Thank you!

1 Like