Discussion:
Header files with no file type? (no .h)
Nick Schultz
2010-04-18 21:03:25 UTC
Permalink
Sorry if this seems like a noob question, but why do all of the header files in the codebase not have a '.h' filetype? The reason I ask is because it seems that Visual Studio won't highlight any syntax, or provide any of its features while viewing these header files (probably because they don't have a .h associated to it). Is there a way to have VS highlight syntax in these header files that aren't a .h filetype?

Thanks

Nick

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26933#26933
Mourad Boufarguine
2010-04-18 21:08:38 UTC
Permalink
Hi Nick,

You can enable syntax highlighting for extensionless headers :
http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio
, look
for "extensionless".

Mourad
Post by Nick Schultz
Sorry if this seems like a noob question, but why do all of the header
files in the codebase not have a '.h' filetype? The reason I ask is because
it seems that Visual Studio won't highlight any syntax, or provide any of
its features while viewing these header files (probably because they don't
have a .h associated to it). Is there a way to have VS highlight syntax in
these header files that aren't a .h filetype?
Thanks
Nick
------------------
http://forum.openscenegraph.org/viewtopic.php?p=26933#26933
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Nick Schultz
2010-04-18 21:27:32 UTC
Permalink
Cool, that worked!

Quoted from bouffa's link:

"Go to Tools-Options, then Text Editor-File Extension, check "Map Extensionless Files To" at the bottom and select "Microsoft Visual C++" in the list to the right. "

Thanks!

Nick

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26935#26935

Loading...