eclipse jdt syntax highlighting of constants

436 Views Asked by At

Anyone know of a simple way of adding syntax highlighting rules to the default syntax coloring in the eclipse java jdt? I would like to show constants of various kinds in a specific colour.

Such as: final members and enum value literals (not the enum type name). Numbers and strings are already supported, as is static final member.

1

There are 1 best solutions below

1
On

Preferences -> JAVA -> Editor -> Syntax Coloring

And in Element box select static final fields under java you can change your color by what you want for your constant