Windows Live Writer 是MS提供的一个离线Blog写作工具,支持众多Blog平台
优快云 Blog 设置参考相关文档,当然,一些优快云 Blog附加的功能,比如文章摘要,推荐分类什么的肯定是不支持的
Live Writer的草稿备份参考相关文档,可以手工、使用第三方工具或插件进行备份
在Blog中高亮代码推荐CodeFormatter,它是一个Live Writer插件
http://stevedunns.googlepages.com/codeformatterforwindowslivewriter
CodeFormatter对中文支持不是太好
//RASENTRYNAME数组-一个成员 RASENTRYNAME[] entryNames = new RASENTRYNAME[1]; //设置RASENTRYNAME结构的dwSize entryNames[0].dwSize = Marshal.SizeOf(typeof(RASENTRYNAME)); //设置cb,它一个[in, out]参数,用于向API输入和由API输出实际的缓冲区大小 int cb = 1 * Marshal.SizeOf(typeof(RASENTRYNAME)); //[in, out] //由API返回获取的数据条目数,它是一个[out]输出参数 int entries = 0; //[out] //第一次调用 uint nRet = API.RasEnumEntries(IntPtr.Zero, IntPtr.Zero, entryNames, ref cb, ref entries); //这里不能使用nRet != ERROR_SUCCESS 这里对于系统中存在一个拨号连接以上的情况,nRet是ERROR_BUFFER_TOO_SMALL if (entries == 0) return; //根据entries定义新数组并调用API if (entries > 1) { entryNames = new RASENTRYNAME[entries]; for (int i = 0; i < entries; i++) entryNames[i].dwSize = Marshal.SizeOf(typeof(RASENTRYNAME)); nRet = API.RasEnumEntries(IntPtr.Zero, IntPtr.Zero, entryNames, ref cb, ref entries); } //输出 for (int i = 0; i < entries; i++) Trace.WriteLine(entryNames[i].szEntryName);
以上是一个使用CodeFormatter发布的代码范例,背景是用的自定义颜色,RGB 230、230、230
有此利器,写起Blog就顺手多了