C: semantic coloring broken [message #758819] |
Thu, 24 November 2011 11:10  |
Eclipse User |
|
|
|
I'm a bit new to Eclipse, so this is likely a noob problem: I have a C file open in my project and the only colours I see in the editor (containing 200+ lines of code) are black and white. I've looked in Preferences|C/C++|Editor|Syntax Coloring and this stuff is all enabled, so I don't know what it's waiting for. The outline tab says "An outline is not available". Is that related?
I'm running:
Eclipse IDE for C/C++ Developers
Version: Indigo Service Release 1
Build id: 20110916-0149
What that doesn't seem to tell you is that it's 64-bit (I seem to remember installing) and running Win7.
[Updated on: Thu, 24 November 2011 15:48] by Moderator
|
|
|
|
Re: C: semantic coloring broken [message #759286 is a reply to message #758819] |
Mon, 28 November 2011 04:33   |
Eclipse User |
|
|
|
What's the ending of your file? Usually the C editor opens automatically when your file has the ending *.c, *.C, *.cpp, *.c++, , *.cc, *.cxx, *.h, *.hh, *.hpp, *.hxx
See Preferences->C/C++->File Types
|
|
|
Re: C: semantic coloring broken [message #759392 is a reply to message #759286] |
Mon, 28 November 2011 09:40  |
Eclipse User |
|
|
|
"Open with..." worked. Thanks. Strange it couldn't figure this out on its own. The file name is "main.c".
Also, how do I make sure that the project is C/C++? When I right-click on the project in the "Project Explorer" and select "Properties" I don't find any combo box or anything that let's me select the language, but looking through the many options, I see a lot of project settings that are all ready to expect a C/C++ project to the exclusion of any other language.
|
|
|
Powered by
FUDForum. Page generated in 0.12430 seconds