user3530974
user3530974

Reputation: 1

Java Editor in Eclipse is acting like a plain text editor

Java editor is not working on my eclipse.

enter image description here

I have also noticed that the J icon before the class name has been replaced by what looks like text editor icon. I tried to reset perspective but it hasn't made a difference,

Upvotes: 0

Views: 329

Answers (1)

vijayan007
vijayan007

Reputation: 386

  • You may be opening the file in text editor mode
  • Try opening in Java Editor mode by right clicking on the file as shown in the below image

enter image description here

  • Once done, syntax highlighting should work as shown below

enter image description here

Upvotes: 1

Related Questions