Castle MonoRails 中使用 NVelocity 进行语法高亮显示
我正在使用 Castle Monorails 和 NVelocity 作为视图引擎。当我转到“工具”>“语法突出显示”时,语法突出显示有效。选项>文本编辑器>文件扩展名并在编辑器体验中将“vm”添加到“HTML 编辑器”。
例外情况是:
当文件不以标记开头而是以速度语法开头时,语法突出显示会失败。示例
#*
Some comment with development notes about this file..
*#
<div>
<p>The actual markup</p>
</div>
有人可以解决此问题吗?
I'm working with Castle Monorails and NVelocity as a view engine. The syntax highlighting works when I go to Tools > Options > Text Editor > File Extension and add "vm" to "HTML Editor" on Editor Experience.
Here's the exception:
When a file does not start with a tag, but with velocity syntax, the syntax highlighting fails. Example
#*
Some comment with development notes about this file..
*#
<div>
<p>The actual markup</p>
</div>
Anyone have a fix for this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 CVSI(Castle Visual Studio 集成),它是 NVelocity 的着色器和 IntelliSense。
Try using CVSI (Castle Visual Studio Integration), it's a colorizer and IntelliSense for NVelocity.
我为 VS 2013 下载了 CSVI,但没有任何效果(颜色编码和智能感知都没有)
我还删除了缓存的注册表值,尝试重新启动系统,但没有任何效果。颜色编码在 VS 2005 中有效,但在 2010 或 2013 中无效。我错过了什么吗?
这就是我所做的,我下载了 vsix 文件并运行它,它打开了命令提示符并执行了一些操作,之后什么也没有发生。非常感谢任何建议。
http://jonorossi.com/blog/ 2014/05/31/castle-visual-studio-integration-0.5.0/
谢谢
这是我所做的
1.将 vsix 重命名为 zip 更新的扩展名 .vsixmanifest XML 文件以支持 .net 2.0 版本到 4.5
2. 再次构建一个包含所有库和清单文件的 zip 文件,然后将其重命名回 vsix。
3. 右键单击 .vsix 文件,使用 MS Visual Studio 打开版本选择器,然后安装。
上面的3个步骤就成功了。
I downloaded CSVI for my VS 2013 and nothing worked (neither color coding nor intellisense)
I also removed Cached registry values, tried rebooting my system nothing worked. Color coding works in VS 2005 but not on 2010 or 2013. Am I missing anything?
here is what I did I have downloaded vsix file and ran it it opened a command prompt and did something and nothing happens after that. Any suggestions are much appreciated.
http://jonorossi.com/blog/2014/05/31/castle-visual-studio-integration-0.5.0/
Thanks
Here is what I did
1. renamed vsix to zip updated extension.vsixmanifest XML file to support .net 2.0 version to 4.5
2. Built a zip File again with all libraries and manifest file then renamed it back to vsix.
3. Right CLick on .vsix file Open With MS Visual Studio Version selector and then Install.
The above 3 steps did the trick.