BlogEngine.Net 代码格式化扩展有效吗?
几个月来,我一直在尝试寻找适用于 BlogEngine.Net 的代码语法格式化扩展。 我不喜欢默认格式扩展的行为,并尝试了其他几个(manoli 就是其中之一),但它们似乎总是与 TinyMCE 编辑器交互得很糟糕。 有谁知道一个有效的扩展,或者一种不同的方法,可以让我在我的博客上制作漂亮的代码示例,而无需自己从 HTML 中删除垃圾?
谢谢。
For months now I've been trying to find a code syntax formatting extension that works for BlogEngine.Net. I'm not fond of the behavior of the default formatting extension, and have tried a couple of others (manoli is among them), but they always seem to interact badly with the TinyMCE editor. Does anyone know of an extension that works, or a different approach that will allow me to make code samples pretty on my blog without hacking the crap out of the HTML myself?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会尝试使用 Windows Live Writer 和 Paste From Visual Studio 插件。 一旦你WLW,你将永远不会再回到那个该死的TinyMCE 界面。
WLW在这里:
http://get.live.com/writer/overview
插件在这里:
http://gallery.live。 com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
I would try using Windows Live Writer along w/ the Paste From Visual Studio plugin. One you go WLW, you'll never go back to that damn TinyMCE interface.
WLW here:
http://get.live.com/writer/overview
Plugin here:
http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
谢谢,拉夫。 感谢汉塞尔曼在我提出问题后第二天发布的这篇文章,我下载了WLW,现在正在使用它。 至于获得格式漂亮的代码,我正在使用 manoli 上开发和可用的小工具进行剪切和粘贴。网。
Thanks, Rafe. Thanks to this post that Hanselman put up the day after I asked the question, I downloaded WLW and am now using it. As far as getting prettily formatted code, I'm using cut-and-paste from a little tool developed and available on manoli.net.
查看 SyntaxHighlighter.. 效果非常好。 为了轻松集成到 BlogEngine,请查看 我的博客文章。
Check out SyntaxHighlighter.. Works excellent. For easy integration into BlogEngine have a look at my blog post.