Reputation: 124
Currently my Eclipse IDE shows no syntax coloring and does not scope (i.e. suggest commands based on current text.) I've read the manual (bit.ly/1ZJVGRE) and couldn't find anything that worked.
Here is a picture of what my Eclipse editor currently looks like,
and here is a picture of my syntax color settings.
I am using Eclipse Mars C/C++ on Windows 8.1. Does anyone know how to fix this?
Upvotes: 1
Views: 291
Reputation: 16540
assuming that the editor thinks the current file is a C or C++ file
in the eclipse menu
window
to expandpreferences
to selectC/C++
to expandeditor
to expandsyntax coloring
to selectenable senamic highlighting
to enable syntax coloringelement
items as desired (Preview
window will tell you the current/result of any changes you make)ok
Upvotes: 0
Reputation: 23788
You have probably opened the file with the Text Editor instead of the C/C++ editor. Eclipse opens the file with the last editor that was used to edit the file.
In the Project Explorer window, right-click on the file and choose Open With -> C/C++ Editor
Hope this helps.
Upvotes: 1