·  MVS 2008 – Settings – Syntax Highlighting

 

- Info:

  - This tutorial shows how to set syntax highlighting.

 

- C/C++:

  - Tools – Options – Environment – Fonts and Colors – Show  settings for: Text Editor – ... – OK

  - Strings and headers <stdio.h> share the same color as defined by String.

    Functions and variables share the same color as defined by Identifier.

 

 

 

 

 

 

B

Example

    

Comment

0

128

0

 

//Comment.

 

Keywords

0

0

255

Y

return

 

Number

200

0

200

 

10

 

Preprocessor Keyword

0

0

255

Y

#include

 

Strings

200

0

200

 

"Hello World"

 

    Test.cpp

    #include <stdio.h>

    

    int main () {

      int var = 10;

      printf("%s\n","Hello World"); //Comment. 

      return 0;

    }