Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No syntax highlighting in eclipse for java

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..

enter image description here

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...

enter image description here

AAny suggestions..

Update:

It seems Java plugin is not installed..as per the below screeenshot

enter image description here

And when i try to install java plugin it says new version is already installed as per the below screenshot

enter image description here

like image 330
javanoob Avatar asked Aug 01 '13 02:08

javanoob


People also ask

Does Eclipse have syntax highlighting?

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.

How do I turn off syntax highlighting in Eclipse?

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.

What is syntax highlighting in Java?

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.


1 Answers

Closing the file's tab and re-opening it fixed it for me.

(I actually closed all the tabs...)

like image 122
Frederick Avatar answered Oct 04 '22 11:10

Frederick