在線博客編輯寫的稍長點就很不爽,另外想在oschina和csdn上發佈同一篇博客也費勁,所以想找個離線博客平臺。
比較常用的離線博客軟件是Windows Live Writer和Zoundry Writer,
csdn的離線發佈使用參見 公告:CSDN博客頻道支持Windows Live Writer離線寫博客啦
oschina的離線發佈使用參見 使用 Live Writer 在 oschina 上寫博客 和 OSChina 增加對 Zoundry Writer 寫博客的支持
-
Windows Live Writer
大部分平臺都支持Windows Live Writer,所以剛開始想用Windows Live Writer的,無奈安裝軟件費了半天勁還出問題,怒而使用Zoundry Writer。
記錄下我碰到的Windows Live Writer問題:
1 版本問題,官網下載的是在線安裝,Windows Live Writer 2009後續的版本是不支持XP的,所以想XP安裝得找以前的版本,搜到一個2009的綠色版本是可用的。
2 .net問題,按照csdn官方公告的方法,在添加日誌賬戶下一步時報錯:嘗試檢測日誌設置時發生意外錯誤,網上查到一個解決方法:.net版本衝突,卸載多餘.net,升級IE7至IE8。
我卸載了.net4保留了.net2 .net3,裝這麼多都是以前裝軟件要求的依賴。csdn賬戶Ok,可是oschina又在相同的步驟報錯(估計教程裏用的高版本測試的),如下圖,
兩次報的還不一樣,忽然想起以前用過一陣Windows Live Writer,好像插件有時候也會出現.net問題,實在沒心情用了。強烈吐槽.net兼容性。
-
Zoundry Writer
下載直接官方網站
使用步驟和Windows Live Writer差不多,都是添加賬戶,遠程發佈網址等等,一切順利,Zoundry Writer還可以下載博客,但csdn下載失敗,Internal Server Error。
Zoundry Writer的缺點是不原生支持代碼高亮,需要藉助工具,我使用的是highlight工具。
我的做法是先寫完文字,然後將要寫的代碼使用工具轉換成XHTML格式,Zoundry Writer 切換到XHTML方式下,粘貼到自己想放的位置。下面是我的測試代碼,希望能正常顯示。
-
#include <stdio.h>
-
#include <stdlib.h>
-
int main ()
-
{
-
printf ( "Hello Zoundry!" );
-
return 0 ;
-
}
本篇博客使用Zoundry Writer編輯發佈,也是一個測試博客。
============================================================
2014.7.11
代碼高亮失敗,看來今後還是寫字用這個先存草稿,網頁編輯代碼圖片吧,或者還是試試Windows Live Writer。。
============================================================
2014.7.12
測試離線發佈代碼,使用CSDN的CODE代碼片功能,CODE代碼片使用參見CODE幫助文檔
#include
#include
#include
int main()
{
std::string a = "some string";
std::string b = a;
assert(b.data() == a.data());// We assume std::string is COW-ed
std::cout << b[0] << std::endl;
assert(b.data() != a.data()); // Oops!
return 0;
}
離線發佈圖片經常出問題,使用圖片外鏈功能發佈就Ok,七牛雲免費帳號夠用了,直接在HTML中插入圖片代碼:
<img src="圖片鏈接地址"alt="圖片描述"/>
圖片測試:
Powered by Zoundry Raven