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 Core CLI工具文档』(十四)dotnet-install 脚本参考
说明:本文是个人翻译文章,由于个人水平有限,有不对的地方请大家帮忙更正. 原文:dotnet-install scripts reference 翻译:dotnet-install 脚本参考 名称 d ...
- WebAPI接收JSON参数注意事项
运行环境:ASP.NET 4.5.2. 当我们向GlobalConfiguration.Configuration.MessageHandlers添加一个DelegatingHandler派生类后,很 ...
- StackExchange.Redis帮助类解决方案RedisRepository封装(基础配置)
本文版权归博客园和作者吴双本人共同所有,转载和爬虫,请注明原文地址.http://www.cnblogs.com/tdws/p/5815735.html 写在前面 这不是教程,分享而已,也欢迎园友们多 ...
- LINQ to SQL语句(14)之Null语义和DateTime
Null语义 说明:下面第一个例子说明查询ReportsToEmployee为null的雇员.第二个例子使用Nullable<T>.HasValue查询雇员,其结果与第一个例子相同.在第三 ...
- 分布式文件系统 - FastDFS 简单了解一下
别问我在哪里 也许我早已不是我自己,别问我在哪里,我一直在这里. 突然不知道说些什么了... 初识 FastDFS 记得那是我刚毕业后进入的第一家公司,一个技术小白进入到当时的项目组后,在开发中上传用 ...
- CentOS6.7搭建LNMP环境
1:查看环境: [root@localhost ~]# cat /etc/redhat-release 2:关掉防火墙 #重启后生效开启 [root@localhost ~]# chkconfig i ...
- JavaScript--面向对象--猜拳游戏
//html代码 <!doctype html> <html> <head> <meta charset="UTF-8"> < ...
- Atitit 游戏的原理与概论attilax总结
Atitit 游戏的原理与概论attilax总结 1. 游戏历史2 1.1.1. 盘点PC游戏史上最重要的50款游戏2 1.1.2. 回味人类文明进程 五款经典的历史游戏2 2. 游戏类型(主要分为6 ...
- js数组转换问题
一维数组转多维数组 var arr=[1,2,3,4,5,6,7,8,9,10]; function splitArray(arr,size){ var result = []; var tempAr ...
- 纯Swift编写的仿“随遇”应用源码
纯Swift编写的仿“随遇”App概述 此项目是为了巩固Swift掌握而编写的,素材均来自“随遇”官方App 用Storyboard+Xib+Autolayout的方式来实现UI部分 由于项目不复杂, ...