I'm probably missing something very obvious here. I have files with the extension .st that contain (mostly) C++ code. I want the C++ in there to be highlighted when I open it with Visual Studio. I go to Tools->Options->Text Editor->File Extension. I type 'st' in the 'extension' box and select 'Microsoft Visual C++' as the editor (I also tried 'source code editor' but that didn't help). But I still don't get syntax coloring. Is there another way?
我可能错过了一些非常明显的东西。我有扩展名.st的文件,其中包含(主要)C ++代码。当我用Visual Studio打开它时,我想要在那里突出显示C ++。我转到工具 - >选项 - >文本编辑器 - >文件扩展名。我在'扩展'框中键入'st'并选择'Microsoft Visual C ++'作为编辑器(我也尝试了'源代码编辑器',但这没有帮助)。但我仍然没有得到语法着色。还有另一种方式吗?
1 个解决方案
#1
3
I've just tried it, exactly as you describe, and it worked OK, although I had to close the .st file and reopen it to see the change.
我刚试过它,就像你描述的那样,它工作正常,虽然我必须关闭.st文件并重新打开才能看到变化。
#1
3
I've just tried it, exactly as you describe, and it worked OK, although I had to close the .st file and reopen it to see the change.
我刚试过它,就像你描述的那样,它工作正常,虽然我必须关闭.st文件并重新打开才能看到变化。