File: VisualStudio_Syntax_Highlighting.txt

package info (click to toggle)
openscenegraph 3.6.5%2Bdfsg1-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 40,100 kB
  • sloc: cpp: 392,065; ansic: 21,495; java: 1,020; yacc: 548; makefile: 430; objc: 406; xml: 155; lex: 151; javascript: 34
file content (21 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Mapping extensionless header files to C++ in Visual Studio
=============================================================================

Previous versions of the OSG included registry files which enabled syntax 
highlighting for OSG's extensionless headers in Visual Studio. These are not 
needed anymore, because starting with Visual Studio 2002 (7.0), there is a 
setting that will map extensionless files to a certain language in the 
options. This also works for the Express Editions.

1. Go to Tools-Options.
2. Open the Text Editor section, and click on File Extension.
3. At the bottom of the window, check the Map Extensionless Files To 
   checkbox, and select Microsoft Visual C++ in the list to the right.

Note that if you use this feature for other languages, you will have to 
change it when needed. If that is too cumbersome you may want to generate 
the registry files and do it that way instead. Please see the 
.reg files in previous versions of OSG in the VisualStudio directory for 
a guide on how to do that (hint: check the location of the registry key
to make sure the added values end up in the right place for your version
of Visual Studio).