安裝插件:Code Formatter for Windows Live Writer java
下載地址:http://plugins.live.com/writer/detail/code-formatter-for-windows-live-writerwindows
下面來舉個插入java代碼的例子:app
1.選擇插件入代碼this
2.插件選項url
3.插入代碼.net
4.點擊 Insert as Text 按鈕把代碼插入到文章插件
若是想修改代碼,能夠點擊文章中的代碼,看到右邊出現插件選項code
點擊 Edit Code 便可編輯這段代碼了orm
下面就是插入的java代碼展現:xml
package cn.nextapp.xmlrpc.bean; /** * @author liux * @date 2012-1-16 下午4:21:54 */ public class BlogInfo { private String blogid;//博客id private String url;//博客地址 private String blogName;//博客名 public String getBlogid() { return blogid; } public void setBlogid(String blogid) { this.blogid = blogid; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getBlogName() { return blogName; } public void setBlogName(String blogName) { this.blogName = blogName; } }