Windows live writer代码高亮插件
SyntaxHighlighter插件
这个插件本人感觉还不错,而且还是开源的。效果见CCS3.3关于__strasgi的bug中的代码部分。但在我用了这一次之后就出现了下面的错误,郁闷。
System.IO.FileNotFoundException: 未能加载文件或程序集“Wilco.SyntaxHighlighter, Version=0.5.0.0, Culture=neutral, PublicKeyToken=fb87150479c2990b”或它的某一个依赖项。系统找不到指定的文件。
文件名:“Wilco.SyntaxHighlighter, Version=0.5.0.0, Culture=neutral, PublicKeyToken=fb87150479c2990b”
在 CodemarksFramework.LiveWriter.Plugins.FrmLiveWriterPlug..ctor()
在 CodemarksFramework.LiveWriter.Plugins.FrmLiveWriterPlug..ctor(String& content)
在 CodemarksFramework.LiveWriter.Plugins.LiveWriterAdapter.CreateContent(IWin32Window dialogOwner, String& content)
在 WindowsLive.Writer.PostEditor.ContentSources.ContentSourceManager.PerformInsertion(IContentSourceSite sourceSite, ContentSourceInfo contentSource)警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。
由于是开源软件网上的版本很多,我又在codeplex下载一个,用起来没有没有报错,但可惜的是不支持中文。PS:最初的那个实在Windows live上下载的。
codeplex上有需要windows live writer的插件,您可以任意挑选。我最终还是选择了highlight4writer,下面是测试代码。
unsigned char src[]="xinzero.com"; SetTime(); //test
我的是zblog,今天也安装了InsertCode高亮插件,效果也不错。效果如下:http://www.ntsfjc.com/blog/post/15.html
WP资源太多了。