From 708a4032a4fc44ae8faeb3573e36b9837f90edb2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 21 Jan 2008 18:06:47 +0000 Subject: [PATCH] From Jean-Sebastien Guay, notes on how to enable syntax highlighting in VS. --- .../VisualStudio_Syntax_Highlighting.txt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 PlatformSpecifics/Windows/VisualStudio_Syntax_Highlighting.txt diff --git a/PlatformSpecifics/Windows/VisualStudio_Syntax_Highlighting.txt b/PlatformSpecifics/Windows/VisualStudio_Syntax_Highlighting.txt new file mode 100644 index 000000000..86080c4be --- /dev/null +++ b/PlatformSpecifics/Windows/VisualStudio_Syntax_Highlighting.txt @@ -0,0 +1,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).