How to get C (not C++) syntax highlighting in Visual Studio (2010)?

I was doing some small exercises in C with a friend, and I kept using keywords from newer languages (e.g. bool, new) out of habit. It took me a while to realize that was the issue because VS kept highlighting them as keywords, even though they aren't in C.

I made sure all of my files were *.c, and I set the project properties to compile as C. However, the editor always added syntax highlightint for C++ keywords in addition to C keywords. Is there any way to tell Visual Studio that I just want plain C?

Using VS2010 if it matters.

7
задан Jimmy 13 April 2011 в 07:34
поделиться