博客园内置支持SyntaxHighlighter代码着色,代码着色语法:<pre class='brush:编程语言'>代码</pre>. 需要注意的是:如何你使用SyntaxHighlighter代码着色,需要将默认编辑器改为TinyMCE.如果使用CuteEditor,CuteEditor会自动去除代码中的空格,造成代码格式破坏. 如果您使用Windows Live Writer写博客(配置步骤),通过Windows Live Writer代码着色插件,可以方便进行Syntax…
这是我用 Windows Live Writer 发布的第一篇文章! 在官方网站看到 Windows Live Writer Source Code plugin for SyntaxHighlighter 源码已经到2.0了,只是没有生成 dll 而已,自己用vs生成了2.0版本,最看中的是可以更改代码区的字体和大小了,很棒! public class HelloBlog { private String txtContent = ""; public void write(Stri…
背景 我在博客园上写博客是使用Windows Live Writer,代码高亮插件是使用Paste from Visual Studio(下文简称VSPaste). Windows Live Writer更进一步的资料,可参照[超详细教程]使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园全面总结,下载地址在此处. VSPaste更进一步的资料,可参照CnBlogs博文排版技巧.由于Windows Live Writer 2012的终止日期是…
平时都是用Windows Live Writer写博客,发布博客.遇到需要插入代码都是先在notepad中写好,或者是拷贝到notepad,再从notepad中拷到Windows Live Writer,比较麻烦.在博客中使用插件Code Snippet就能很好解决这个问题. 下载地址:http://wlwplugincollection.codeplex.com/ 安装完成之后,打开Windows Live Writer,插入->插件->Code Snippet. 点击"Inser…