The Eclipse text editor offers a specific level of color customization for syntax.
You can check it out: Window> Preferences> C / C ++> Editor> Syntax Coloring
There are several elements that can be changed, including code, assembly, comments, preprocessor, and Doxygen.
In the "Code" section, you can change the color of certain types of variables, such as global variables, declarations of local variables, references to local variables and parameter variables.
But I do not think that it is able to change the color of each individual variable that you specified in the code. Perhaps you can find the Eclipse plugin for this.
source share