Sublime Forum

Why the Monokai colors for Java

#1

What is the basis for the colors in the Monokai color scheme for Java files?

Sometimes the type of a method argument is in white, other times it is in light blue

Is there a rationale for that?

0 Likes

#2

The coloring is based on the scopes. You can use ScopeHunter to see the scopes applied to a given word. You will also need to look at the “Java.tmLangauge” files to see the regex that applies a particular scope. There is probably some issue with the regex where the “method” scope is defined.

1 Like