Files with a .SQL extension when opened in Visual Studio 2008 have T-SQL syntax highlighting.
How can I persuade the editor to apply this syntax highlighting to files with a different extension (in my case, .PLPGSQL).
The SQL editor doesn’t appear to be an option in the Tools > Options > Text Editor > File Extension > Editor drop down list – and this is the only area of the options where I can see anything like what I’m after.
I feel like I’m missing something that should be really obvious.
I guess you now have your answer, but anyway for those who would still search …
You have to fiddle a bit with your registry, at least in VS 2008:
First, create a key for your specific extension in “File Extensions”
(in my exemple: .prc)
Then set the default value to:
“
{FA6E5E79-C8EE-4D37-B79A-5067F8BD5630}“Should do the trick.