用Windows Live Writer 首發Blog

來源:互聯網
上載者:User

    一直都是直接在部落格園提供的線上編輯器中發布自己的Blog,養成習慣啦。突然發現有Windows Live Writer一個這麼好的案頭寫部落格的工具,很是興奮。興奮之餘,想測試一下這個工具。於是寫了這篇Blog。

    寫點什麼好呢?得,不費那個腦子了,就寫寫Windows Live Writer的配置吧,費了半天勁才配置成功,總的寫出來吧,不然太對不起自己了。

    配置步驟如下

  1. 在菜單中選擇“Weblog”,然後選擇“Another Weblog Service”。
  2. 在Weblog Homepage URL中輸入你的Blog首頁地址。
  3. 輸入使用者名稱與密碼。
  4. 在“Type of  weblog that you are using”中選擇“Custom(Metaweblog API)”。
  5. “Remote posting URL for your weblog”中輸入“http://www.cnblogs.com/使用者名稱/services/metaweblog.aspx”。

    經過這樣的配置後,就可以使用了,當然還可以安裝外掛程式,比如:插入代碼,插入酷表情。 這個表情是不是相當酷啊。哈哈,不過外掛程式反應有點慢是真的。

 

   好,其實這些外掛程式我最關心的還是插入代碼,測試下,插入段代碼,

   1:            /// <summary>
   2:           /// 串連數組各個元素構成字串
   3:           /// </summary>
   4:          /// <param name="array">要串連的數組</param>
   5:          /// <param name="separater">分隔字元</param>
   6:          /// <returns>串連後組成的字串</returns>
   7:          public static string ToString(this Array array, string separater)
   8:          {
   9:              if (array == null)
  10:                  return null;
  11:   
  12:              StringBuilder builder = new StringBuilder();
  13:              for (int i = 0; i < array.Length; i++)
  14:              {
  15:                  builder.Append(array.GetValue(i).ToString());
  16:                  builder.Append(separater);
  17:              }
  18:   
  19:              if (builder.Length > 0 || !String.IsNullOrEmpty(separater))
  20:                  builder.Remove(builder.Length - 1, 1);
  21:   
  22:              return builder.ToString();
  23:          } 
   這段代碼實現的功能就是串連數組的各個字元構成字串,呵呵,效果不錯。

      以後寫blog,就是它了。

     你還等什麼呢?

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.