本文将自己使用Windows Live Writer(WLW)过程中遇到的问题做个简单记录,以免下次重装系统要花很长时间处理这些事,主要包括安装、WLW插件以及遇到的BUG。
目录
1. WLW下载
在谷歌搜索Windows Live Writer会出来Download Windows Live Writer from Official Microsoft ,但这不是最新版。不是在Microsoft Download Center下载Windows Live Writer (这是2009年的版本)。WLW已集成到Windows Essentials,点击这里下载Windows Essentials,安装WLW是2012版。
2. WLW插件
官方的WLW插件在这里,但内容不丰富,很多还是要自己找。WLW插件安装方法通常是将相应的动态库文件dll拷贝到C:\Program Files (x86)\Windows Live Writer\Plugins\目录下。
2.1 WindStyle SlugHelper
WindStyle SlugHelper可以将中文标题翻译成英文,使得URL更加友好。将下载得到的“WindStyle.WindowsLiveWriter.Plugin.SlugHelper.dll”文件复制到WLW安装目录的Plugins目录C:\Program Files (x86)\Windows Live\Writer\Plugins。重启WLW,slug插件自动启用了(File –> Options –> Plugin-in)。
不幸的是,我发布文章遇到如下错误,Could not load file or assembly ‘Windows Live.Writer.Extensibility。
网上搜了下,问题不出在slug插件,而是.NET Framework,重新安装Microsoft .NET Framework 4.5。安装过程中,提示本电脑已安装。然后找到Microsoft .NET Framework Repair Tool,还是不能解决。求指点!
2.2 插入代码插件
2.2.1 Code Formatter Plugin for Window Live Writer
Code Formatter Plugin for Window Live Writer,功能是挺强大的,如下:
但不足的是,边框大小不能自适应,很是麻烦。
1 public class ConnectionEvent extends ExternalEvent { 2 /** address of the node the (dis)connection is from */ 3 protected int fromAddr; 4 /** address of the node the (dis)connection is to */ 5 protected int toAddr; 6 /** Is this a "connection up" event*/ 7 protected boolean isUp; 8 /** What is the interface number for this event*/ 9 protected String interfaceId;
2.2.2 WLW Code Plugin
WLW Code Plugin,功能也是挺强大的,Preview也挺好看,如下:
但插入到我博客,就成这个死样子了。发布后,更是一团糟,如下:
[sourcecode language='java' padlinenumbers='true'] public class ConnectionEvent extends ExternalEvent { /** address of the node the (dis)connection is from */ protected int fromAddr; /** address of the node the (dis)connection is to */ protected int toAddr; /** Is this a "connection up" event*/ protected boolean isUp; /** What is the interface number for this event*/ protected String interfaceId; } [/sourcecode]
2.2.3 Insert Code for Windows Live Writer
Insert Code for Windows Live Writer,各方面都很好,不足的是目前只支持几种代码格式,即C#, JavaScript, HTML, TSQL, MSH, Visual Basic。我目前就用这个,先凑合着用。
public class ConnectionEvent extends ExternalEvent { /** address of the node the (dis)connection is from */ protected int fromAddr; /** address of the node the (dis)connection is to */ protected int toAddr; /** Is this a "connection up" event*/ protected boolean isUp; /** What is the interface number for this event*/ protected String interfaceId; }
2.2.4 PreCode
PreCode是基于SyntaxHighlighter的WLW插件,是我目前用过最好用的。
关于如何更好地在wordpress高亮显示代码,可以见博文《《WordPress和Windows Live Writer下的代码高亮》》。
2.3 All In One SEO Pack
今天无意中发现All In One SEO Pack也为WLW提供插件了,果断装起,下载点击这里,如何使用参考这里。一直有个问题,如何自动添加这些SEO信息呢?
2.4 LaTex
终于找到在博客插入数学公式的好办法了,博文《为WLW开发Latex公式插件》不仅分享了下载地址,而且还介绍了开发原理,感谢该博主。
3. BUG
3.1 不能更新主题
进入到博客后台,仪表盘—>设置—>阅读,将首页显示改成一个静态页面显示,再到WLW更新主题,完成之后,再到博客后台更过来。
赞赏微信赞赏
支付宝赞赏
换了一个主题(f2 –> radiate),代码插件WLW Code Plugin居然可以正常使用了:-)