据我所知,没有办法为Visual Studio 2010提供保留html,css和javascript突出显示的优秀NVelocity语法高亮,所以我这样做的方法是去工具>选项>文本编辑器>文件扩展名并将vm添加到HTML编辑器。
这很好用,我不需要为#if #else等语法高亮显示,但如果文档以#开头,它将破坏HTML编辑器语法。
## Some comment, or anything with #NVelocity syntax
<div>this will not have syntax highlighting</div>
然而,如果我先放任何东西,它会起作用,就像这样
<!-- Unwanted comment -->
## Some comment, or anything with #NVelocity syntax
任何人都知道如何在文档的开头使用#?