There is no syntax highlighting in java files in my eclipse..This happened all of a sudden..Not sure why..
This is how it is looking now..
As mentioned in other posts..i tried to change the color from preferences window and there is nothing when i type java..something really messed up...
AAny suggestions..
Update:
It seems Java plugin is not installed..as per the below screeenshot
And when i try to install java plugin it says new version is already installed as per the below screenshot
The color and font settings can be configured from the Syntax Coloring preferences page, accessed from Window | Preferences | PHP | Editor | Syntax Coloring. Note: Syntax Coloring will also be available for JavaScript elements if JavaScript support was enabled for the project.
Select Window->Preferences->C/C++->Scalability->Disable syntax coloring in editor. Set Window->Preferences->C/C++->Scalability->"Enter scalability mode when the number of lines in the file is more than" to something low (e.g. 10) Close the file and reopen it.
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.
Closing the file's tab and re-opening it fixed it for me.
(I actually closed all the tabs...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With