以下code插件命名按照 Windows Live Writer 中显示的插件名

1、Source code plug-in(cnblogs官方推荐)

界面:

效果:

/**
* Returns the value in the current thread's copy of this
* thread-local variable. If the variable has no value for the
* current thread, it is first initialized to the value returned
* by an invocation of the {@link #initialValue} method.
* 返回当前线程的线程本地变量副本的值
* 如果当前线程的这个变量还没有赋值,可以通过调用 setInitialValue()方法赋初始值
*
* @return the current thread's value of this thread-local
*/
public T get() {
Thread t = Thread.currentThread();//当前线程
ThreadLocalMap map = getMap(t);//获取当前线程的 ThreadLocalMap
//如果ThreadLocalMap不为空
if (map != null) {
//以当前 ThreadLocal(线程本地变量)为key,从ThreadLocalMap中获取对应的Entry(key:ThreadLocal,value:Object)
ThreadLocalMap.Entry e = map.getEntry(this);
if (e != null)
return (T)e.value;
} //如果还当前ThreadLocal(线程本地变量)无法获取value,调用初始化value方法
return setInitialValue();
}

特点:

1、Windows Live Writer编辑和预览效果不一样

2、插入代码后不便于再编辑

3、发布到cnblogs后,效果不错

下载:http://files.cnblogs.com/files/trust-freedom/SourceCodePlugin_version_1.1.zip

2、SyntaxHighlighter

界面:

效果:

/**
* Returns the value in the current thread's copy of this
* thread-local variable. If the variable has no value for the
* current thread, it is first initialized to the value returned
* by an invocation of the {@link #initialValue} method.
* 返回当前线程的线程本地变量副本的值
* 如果当前线程的这个变量还没有赋值,可以通过调用 setInitialValue()方法赋初始值
*
* @return the current thread's value of this thread-local
*/
public T get() {
Thread t = Thread.currentThread();//当前线程
ThreadLocalMap map = getMap(t);//获取当前线程的 ThreadLocalMap
//如果ThreadLocalMap不为空
if (map != null) {
//以当前 ThreadLocal(线程本地变量)为key,从ThreadLocalMap中获取对应的Entry(key:ThreadLocal,value:Object)
ThreadLocalMap.Entry e = map.getEntry(this);
if (e != null)
return (T)e.value;
} //如果还当前ThreadLocal(线程本地变量)无法获取value,调用初始化value方法
return setInitialValue();
}

参考:http://www.cnblogs.com/rollenholt/archive/2012/03/08/2384594.html

特点:

1、Windows Live Writer编辑和预览效果一致

2、插入代码后便于编辑,点击代码块后,右侧显示

3、发布到cnblogs后,和Windows Live Writer效果不完全相同,宽度变小了

下载:http://files.cnblogs.com/files/trust-freedom/SyntaxHighlighter.rar

3、插入代码(cnblogs官方推荐)

界面:

效果:

/**
* Returns the value in the current thread's copy of this
* thread-local variable. If the variable has no value for the
* current thread, it is first initialized to the value returned
* by an invocation of the {@link #initialValue} method.
* 返回当前线程的线程本地变量副本的值
* 如果当前线程的这个变量还没有赋值,可以通过调用 setInitialValue()方法赋初始值
*
* @return the current thread's value of this thread-local
*/
public T get() {
Thread t = Thread.currentThread();//当前线程
ThreadLocalMap map = getMap(t);//获取当前线程的 ThreadLocalMap
//如果ThreadLocalMap不为空
if (map != null) {
//以当前 ThreadLocal(线程本地变量)为key,从ThreadLocalMap中获取对应的Entry(key:ThreadLocal,value:Object)
ThreadLocalMap.Entry e = map.getEntry(this);
if (e != null)
return (T)e.value;
} //如果还当前ThreadLocal(线程本地变量)无法获取value,调用初始化value方法
return setInitialValue();
}

参考:http://www.cnblogs.com/cmt/archive/2012/06/26/live_writer_cnblogs_code_highlight.html

特点:

1、和cnblogs官方的浏览器编辑器的code插件效果差不多,高亮效果还不错

2、Windows Live Writer编辑和预览效果一致

3、无法显示行号

4、隔行不能设置不同颜色

5、插入代码后不便于再编辑,有点类似图片的效果

下载:http://files.cnblogs.com/files/trust-freedom/WindowsLiveWriter.CNBlogs.CodeHighlighter.zip

4、插入代码

界面:

效果:

  1: /**
  2:  * Returns the value in the current thread's copy of this
  3:  * thread-local variable.  If the variable has no value for the
  4:  * current thread, it is first initialized to the value returned
  5:  * by an invocation of the {@link #initialValue} method.
  6:  * 返回当前线程的线程本地变量副本的值
  7:  * 如果当前线程的这个变量还没有赋值,可以通过调用 setInitialValue()方法赋初始值
  8:  *
  9:  * @return the current thread's value of this thread-local
 10:  */
 11: public T get() {
 12:     Thread t = Thread.currentThread();//当前线程
 13:     ThreadLocalMap map = getMap(t);//获取当前线程的 ThreadLocalMap
 14:     //如果ThreadLocalMap不为空
 15:     if (map != null) {
 16:         //以当前 ThreadLocal(线程本地变量)为key,从ThreadLocalMap中获取对应的Entry(key:ThreadLocal,value:Object)
 17:         ThreadLocalMap.Entry e = map.getEntry(this);
 18:         if (e != null)
 19:             return (T)e.value;
 20:     }
 21:     
 22:     //如果还当前ThreadLocal(线程本地变量)无法获取value,调用初始化value方法
 23:     return setInitialValue();
 24: }

参考:http://www.cnblogs.com/psunny/archive/2010/03/03/1677693.html

特点:

1、编辑界面可选项较多

2、发不到cnblogs后和Windows Live Writer状态不完全一样,Windows Live Writer中有横向、纵向滚动条,cnblogs中都没有

3、插入代码后不便于再编辑,有点类似图片的效果

下载:http://files.cnblogs.com/files/trust-freedom/WLWSourceCodePluginLib.zip

我也是刚用cnblogs写博客不久,整理了几个觉得还可以的代码插件,欢迎批评指教,如果大家有更好的也欢迎互相交流。

Windows Live Writer代码插件整理的更多相关文章

  1. Windows Live Writer 代码插件改造

    源码和插件都在后面,如果不想看我神神叨叨的可以直接到文章后面下载 一 .找插件 在使用Windows Live Writer 经常要用到插入代码的功能,根据博客园中教程,分别使用了: WindowsL ...

  2. 【转】Windows Live Writer 代码插件改造

    源码和插件都在后面,如果不想看我神神叨叨的可以直接到文章后面下载 一 .找插件 在使用Windows Live Writer 经常要用到插入代码的功能,根据博客园中教程,分别使用了: WindowsL ...

  3. win7 下的open live writer代码插件

    open live writer 是博客园官方推荐的编辑器.恰好被它的各种便利吸引住了,于是花点时间研究一下,结果又用了好长时间,因为代码插件一时安装不了.在这里推荐小伙伴们可以先去看看这篇博文:ht ...

  4. Windows Live Writer代码高亮插件对比

    一.Paste ASVisual Studio Code 参考:http://www.cnblogs.com/mikelij/archive/2010/11/13/1876199.html 插件下载: ...

  5. open Live Writer 代码插件安装

    1,第一步:下载open live writer插件,下载地址:http://www.cnblogs.com/memento/p/5995173.html 2,拷贝文件到Plugins目录(自己建立) ...

  6. Windows Live Writer测试插件

    这是用WLW写的,测试 这是图片: 这是地图: 这是代码: 一会重发

  7. Windows Live Writer加载代码着色插件步骤

    博客园内置支持SyntaxHighlighter代码着色,代码着色语法:<pre class='brush:编程语言'>代码</pre>. 需要注意的是:如何你使用Syntax ...

  8. 用 Windows Live Writer 和 SyntaxHighlighter 插件写高亮代码

    博客园内置支持SyntaxHighlighter代码着色,代码着色语法:<pre class='brush:编程语言'>代码</pre>. 需要注意的是:如何你使用Syntax ...

  9. 新语言代码高亮及Windows Live Writer插件开发

    最近在博客园做一些学习笔记.一个是看apple的swift官方书,另外一个是随学校课堂(SICP)学习scheme. 这两种语言都谈不上普及(或者说swift太新).博客园原来的windows liv ...

随机推荐

  1. 【原创】Kafka Consumer多线程实例

    Kafka 0.9版本开始推出了Java版本的consumer,优化了coordinator的设计以及摆脱了对zookeeper的依赖.社区最近也在探讨正式用这套consumer API替换Scala ...

  2. WangSql 1.0源码共享

    一,项目背景 现在基本上大大小小的项目都需要和数据库打交道,自然而然数据库操作会有很多地方,而使用传统ADO.NET整个流程有点麻烦,出参都需要手动转换为对象.基于以上,我们需要一个SQL执行工具,能 ...

  3. C# - 多线程 之 进程与线程

    并行~并发 并发 Concurrency,逻辑上的同时发生,一个处理器(在不同时刻或者说在同一时间间隔内)"同时"处理多个任务.宏观上是并发的,微观上是按排队等待.唤醒.执行的步骤 ...

  4. cin.ignore()函数的用法

    cin.ignore(a,ch)方法是从输入流(cin)中提取字符,提取的字符被忽略(ignore),不被使用.每抛弃一个字符,它都要计数和比较字符:如果计数值达到a或者被抛弃的字符是ch,则cin. ...

  5. Spring 实现数据库读写分离

    随着互联网的大型网站系统访问量的增高,数据库访问压力方面不断的显现而出,所以许多公司在数据库层面采用读写分离技术,也就是一个master,多个slave.master负责数据的实时更新或实时查询,而s ...

  6. atitit.http原理与概论attilax总结

    atitit.http原理与概论attilax总结 1. 图解HTTP 作者:[日]上野宣 著1 2. HTTP权威指南(国内首本HTTP及其相关核心Web技术权威著作)1 3. TCP/IP详解(中 ...

  7. ERDAS 2014安装破解及汉化图文教程

    关于ERDAS 2014 的安装破解及其汉化过程: 说明:汉化只是之针对英语能力不能正常满足使用软件的朋友们.如果英语过专八,完全没有必要汉化!在此之前查了好多关于ERDAS汉化的文档,可惜只是简单的 ...

  8. H5 meta小结

    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, ...

  9. Android Weekly Notes Issue #219

    Android Weekly Issue #219 August 21st, 2016 Android Weekly Issue #219 ARTICLES & TUTORIALS Andro ...

  10. Android Studio使用时源码到处报红色警告,运行时又没错

    转载地址:http://www.07net01.com/program/2016/04/1452749.html [摘要:正在AS上开辟时,碰到那个题目,翻开全部的Java源文件,右边一起标赤色,找没 ...