Windows Live Writer代码插件整理
以下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代码插件整理的更多相关文章
- Windows Live Writer 代码插件改造
源码和插件都在后面,如果不想看我神神叨叨的可以直接到文章后面下载 一 .找插件 在使用Windows Live Writer 经常要用到插入代码的功能,根据博客园中教程,分别使用了: WindowsL ...
- 【转】Windows Live Writer 代码插件改造
源码和插件都在后面,如果不想看我神神叨叨的可以直接到文章后面下载 一 .找插件 在使用Windows Live Writer 经常要用到插入代码的功能,根据博客园中教程,分别使用了: WindowsL ...
- win7 下的open live writer代码插件
open live writer 是博客园官方推荐的编辑器.恰好被它的各种便利吸引住了,于是花点时间研究一下,结果又用了好长时间,因为代码插件一时安装不了.在这里推荐小伙伴们可以先去看看这篇博文:ht ...
- Windows Live Writer代码高亮插件对比
一.Paste ASVisual Studio Code 参考:http://www.cnblogs.com/mikelij/archive/2010/11/13/1876199.html 插件下载: ...
- open Live Writer 代码插件安装
1,第一步:下载open live writer插件,下载地址:http://www.cnblogs.com/memento/p/5995173.html 2,拷贝文件到Plugins目录(自己建立) ...
- Windows Live Writer测试插件
这是用WLW写的,测试 这是图片: 这是地图: 这是代码: 一会重发
- Windows Live Writer加载代码着色插件步骤
博客园内置支持SyntaxHighlighter代码着色,代码着色语法:<pre class='brush:编程语言'>代码</pre>. 需要注意的是:如何你使用Syntax ...
- 用 Windows Live Writer 和 SyntaxHighlighter 插件写高亮代码
博客园内置支持SyntaxHighlighter代码着色,代码着色语法:<pre class='brush:编程语言'>代码</pre>. 需要注意的是:如何你使用Syntax ...
- 新语言代码高亮及Windows Live Writer插件开发
最近在博客园做一些学习笔记.一个是看apple的swift官方书,另外一个是随学校课堂(SICP)学习scheme. 这两种语言都谈不上普及(或者说swift太新).博客园原来的windows liv ...
随机推荐
- .net 刷新页面防止表单二次提交
1.页面上按钮是服务器控件,现在刷新页面要防止按钮事件重复执行 原网址:http://blog.csdn.net/high_mount/article/details/51066056
- python 数据类型---布尔型& 字符串
python数据类型-----布尔型 真或假=>1或0 >>> 1==True True >>> 0==False True python 数据类型----- ...
- Java传值和传址
调用函数时,传的参数过去可能是传值,也可能是传址.如果是传值,函数内部的操作对参数的值没有影响:如果是传址,函数内部的操作是对参数指向的内存进行操作,会影响参数的值. Java到底是传值还是传址?用下 ...
- python学习笔记(基础三:if else流程判断、while循环、for循环)
if else流程判断 getpass在pycharm中无法使用,在命令行窗口中进入python环境可以使用. import getpassusername = input("usernam ...
- chunkupload文件上传断点续传组件(java)
chunkupload简介 chunkupload是一款基于java语言的断点续传组件,针对文件上传,非文件下载,集成方便,使用简单. 从整体上讲,chunkupload会对文件进行切片处理,每个切片 ...
- 《连载 | 物联网框架ServerSuperIO教程》1.4种通讯模式机制。附小文:招.NET开发,结果他转JAVA了,一切都是为了生活
参考文章: 1.SuperIO通讯框架介绍,含通信本质 2.C#跨平台物联网通讯框架ServerSuperIO(SSIO) 一.感慨 上大学的时候,没有学过C#,花了5块钱在地坛书市买了一本教程,也就 ...
- 什么是WebPack,为什么要使用它?
1.什么是Webpack WebPack可以看做是模块打包机:它做的事情是,分析你的项目结构,找到JavaScript模块以及其它的一些浏览器不能直接运行的拓展语言(Scss,TypeScript等) ...
- Java输入输出常用类Scanner
Scaner类,使用获取键盘输入. public boolean DemoTest(){ Scanner input = new Scanner(System.in); System.out.prin ...
- Android版本和API Level对应关系
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Platform Version API ...
- MS SQL巡检系列——检查外键字段是否缺少索引
前言感想:一时兴起,突然想写一个关于MS SQL的巡检系列方面的文章,因为我觉得这方面的知识分享是有价值,也是非常有意义的.一方面,很多经验不足的人,对于巡检有点茫然,不知道要从哪些方面巡检,另外一方 ...