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 ...
随机推荐
- JS瀑布流布局
好久没有更新博客喽,今天来说一个瀑布流布局. 瀑布流在很多网站已有很多,现在只说一下简单的实现原理吧, 1.计算一行可以排放几个元素 2.建立一个数组用于存放第一行的每个元素的高度. 3.得到数组中的 ...
- Ionic2系列-将beta升级到RC1
国庆节前Ionic2发布了RC0版本,已经接近正式版了,前不久Angular2和TypeScript2也已经发布了正式版.详情请参考官方博客: http://blog.ionic.io/announc ...
- C#-#define条件编译
本文导读: C#的预处理器指令从来不会转化为可执行代码的命令,但是会影响编译过程的各个方面,常用的预处理器指令有#define.#undef.#if,#elif,#else和#endif等等,下面介绍 ...
- 数据结构:堆排序 (python版) 小顶堆实现从大到小排序 | 大顶堆实现从小到大排序
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' Author: Minion-Xu 小堆序实现从大到小排序,大堆序实现从小到大排序 重点的地方:小堆序 ...
- (学习笔记)laravel 中间件
(学习笔记)laravel 中间件 laravel的请求在进入逻辑处理之前会通过http中间件进行处理. 也就是说http请求的逻辑是这样的: 建立中间件 首先,通过Artisan命令建立一个中间件. ...
- java Io文件输入输出流 复制文件
package com.hp.io; import java.io.FileInputStream; import java.io.FileNotFoundException; import java ...
- React Native初探
前言 很久之前就想研究React Native了,但是一直没有落地的机会,我一直认为一个技术要有落地的场景才有研究的意义,刚好最近迎来了新的APP,在可控的范围内,我们可以在上面做任何想做的事情. P ...
- Bootstrap之导航条
基本导航条 <!-- navbar-inverse相反颜色风格 --> <!-- navbar-static-top去除圆角 --> <!-- navbar-fixed- ...
- 磨刀不误砍柴工——VS生成事件
如果说磨刀不误砍柴工,同样用好Visual Studio,会大大增加咱.NET程序猿效率.本文说的就是Visual Studio中的生成事件,在解决方案下右击某个项目然后选择 “属性” 打开窗口后即可 ...
- 释放Android的函数式能量(I):Kotlin语言的Lambda表达式
原文标题:Unleash functional power on Android (I): Kotlin lambdas 原文链接:http://antonioleiva.com/operator-o ...