Question: How do I configure things so that I can get proper code highlighting when I have a file that is a standard format (XML, or SQL) but has an alternate extension (.DNN, .SqlDataProvider)?
Answer: Edit the registry (Warning: This is dangerous! Backup the registry first! I take no responsibility for any damage this may cause). Also, you need to change 7.1 if you are not using Visual Studio 2003:
Under this subkey: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions], add a new key for whatever file extension you want to add syntax highlighting for (ie, .DNN or .SqlDataProvider). It should show up as a little folder icon.
For the default REG_SZ, change the value to equal the GUID for the file extension you want to copy (ie, for .SqlDataProvider use the same GUID as for .sql). Copy any other DWords, values, etc. (just copy everything from the key of the extension you want to copy).
This Blog Hosted On: http://www.DotNetJunkies.com/