Syntax coloring file with non-standard extension in Visual Studio 2008

I probably miss something very obvious. I have files with the extension .st that contain (mostly) C ++ code. I want C ++ to be highlighted there when I open it using Visual Studio. I go to Tools-> Options-> Text Editor-> File Extension. I type 'st' in the 'extension' field and select 'Microsoft Visual C ++' as the editor (I also tried the "source code editor", but that didn't help). But I still don't get the syntax coloring. Is there another way?

+4
source share
1 answer

I just tried this, as you described, and it worked fine, although I had to close the .st file and open it again to see the change.

+3
source

All Articles