Change color of numbers in Eclipse IDE

Viewed 58

I want all the numbers i type in my Java program in Eclipse to be highlighted red (because of "Magic numbers" for example) and i looked around in the preferences tab, but i could not find the option to change the color of numbers. How can i do this?

Example:

Pane root = new Pane();
    root.setPrefSize(300, 300);

300,300 are hardcoded magic numbers and i would like those to be highlighted red.

I explained my problem but stackoverflow says my question doesnt meet the quality standards so im adding this useless extra text so it lets me post.

1 Answers
Related