我希望在Visual Studio 2010中实现C++语言注释的着色功能。例如,我有以下代码:
/*!
\sa testMeToo()
\param a the first argument.
\param s the second argument.
*/
int testMe(int a,const char *s);
在Visual Studio中,所有的Doxygen命令,如\param、\sa等,都没有高亮显示。是否可以为Visual Studio添加自定义的高亮显示呢?对我而言,在Anjuta(GNU/Linux C++ IDE)中最理想的语法高亮是针对这些C++注释的。
谢谢。 更新: 我编写了EnhancedCommentsCpp插件,可以在Visual Studio 2010/2012中高亮显示Doxygen命令: http://visualstudiogallery.msdn.microsoft.com/11a30c1c-593b-4399-a702-f23a56dd8548 下面是效果:
![enter image description here](https://istack.dev59.com/TMkan.webp)