最新插件下载地址:Memento.OLW_V1.0.0.5.7zjavascript
1. 修正 cnblog 语法高亮中的 SQL、Perl 语法高亮异常css
下载地址:Memento.OLW_V1.0.0.1.7zhtml
1. 增长 cnblog 页签中 SQL 语法高亮的关键词连接选择;java
下载地址:Memento.OLW_V1.0.0.2.7zgit
1. 修正Python语法高亮中单行注释颜色问题;github
2. 修正Matlab语法高亮细节问题;bootstrap
下载地址:Memento.OLW_V1.0.0.3.7zwindows
1. 修改 DeployDLL.bat,支持动态获取版本并部署安装;ide
下载地址: Memento.OLW_V1.0.0.4.7z函数
1. 折叠区域采用 bootstrap 样式,须要在博客园“设置”-“页首HTML”中添加对 bootstrap 的引用;
2. 修正折叠区域最大高度设置;
3. 修正上一个版本 V1.0.0.4 发布错误文件问题;
下载地址: Memento.OLW_V1.0.0.5.7z
相关文章介绍连接:
仿博客园插入代码的 WindowsLiveWriter 插件
OpenLiveWriter 的 SyntaxHighlighter 代码高亮插件开发
<link type="text/css" rel="stylesheet" href="http://files.cnblogs.com/files/memento/OLWPlugins.css" /> <script type="text/javascript" src="http://files.cnblogs.com/files/memento/OLWPlugins.js"></script>
(图二)插件模拟弹窗
1 /// <summary> 2 /// 构造函数 3 /// </summary> 4 /// <param name="settings">插件配置</param> 5 /// <param name="content">文本内容</param> 6 public CNBlogs(Settings settings, string content) 7 { 8 InitializeComponent(); 9 10 try 11 { 12 m_Settings = settings; 13 m_Content = content; 14 m_HtmlParser = new HtmlParser(); 15 16 chbCollapse.CheckedChanged += ChbCollapse_CheckedChanged; 17 chbTAB.CheckedChanged += chbTAB_CheckedChanged; 18 chbShowLineNum.CheckedChanged += ChbShowLineNum_CheckedChanged; 19 20 Load += CNBlogs_Load; 21 txtTAB.KeyPress += CommonHelper.NumberImput_KeyPress; 22 } 23 catch (Exception ex) 24 { 25 CommonHelper.ShowError(ex); 26 } 27 }
/// <summary> /// 构造函数 /// </summary> /// <param name="settings">插件配置</param> /// <param name="content">文本内容</param> public CNBlogs(Settings settings, string content) { InitializeComponent(); try { m_Settings = settings; m_Content = content; m_HtmlParser = new HtmlParser(); chbCollapse.CheckedChanged += ChbCollapse_CheckedChanged; chbTAB.CheckedChanged += chbTAB_CheckedChanged; chbShowLineNum.CheckedChanged += ChbShowLineNum_CheckedChanged; Load += CNBlogs_Load; txtTAB.KeyPress += CommonHelper.NumberImput_KeyPress; } catch (Exception ex) { CommonHelper.ShowError(ex); } }
1 -- 文件名为 module.lua 2 -- 定义一个名为 module 的模块 3 module = {} 4 5 -- 定义一个常量 6 module.constant = "这是一个常量" 7 8 -- 定义一个函数 9 function module.func1() 10 io.write("这是一个公有函数!\n") 11 end 12 13 local function func2() 14 print("这是一个私有函数!") 15 end 16 17 function module.func3() 18 func2() 19 end 20 21 return module
1 x = [0:0.01:10]; 2 y = sin(x); 3 plot(x, y), xlabel('x'), ylabel('Sin(x)'), title('Sin(x) Graph'), 4 grid on, axis equal
(图三)SyntaxHighlighter 主界面
(图四)SyntaxHighlighter 插件详细设置
/// <summary> /// 构造函数 /// </summary> /// <param name="settings">插件配置</param> /// <param name="content">文本内容</param> public CNBlogs(Settings settings, string content) { InitializeComponent(); try { m_Settings = settings; m_Content = content; m_HtmlParser = new HtmlParser(); chbCollapse.CheckedChanged += ChbCollapse_CheckedChanged; chbTAB.CheckedChanged += chbTAB_CheckedChanged; chbShowLineNum.CheckedChanged += ChbShowLineNum_CheckedChanged; Load += CNBlogs_Load; txtTAB.KeyPress += CommonHelper.NumberImput_KeyPress; } catch (Exception ex) { CommonHelper.ShowError(ex); } }
/// <summary> /// 构造函数 /// </summary> /// <param name="settings">插件配置</param> /// <param name="content">文本内容</param> public CNBlogs(Settings settings, string content) { InitializeComponent(); try { m_Settings = settings; m_Content = content; m_HtmlParser = new HtmlParser(); chbCollapse.CheckedChanged += ChbCollapse_CheckedChanged; chbTAB.CheckedChanged += chbTAB_CheckedChanged; chbShowLineNum.CheckedChanged += ChbShowLineNum_CheckedChanged; Load += CNBlogs_Load; txtTAB.KeyPress += CommonHelper.NumberImput_KeyPress; } catch (Exception ex) { CommonHelper.ShowError(ex); } }
(图五)FoldRegion 主界面
1 | a |
2 | b |
3 | c |
4 | d |
5 | e |
6 | f |
7 | g |
8 | h |
9 | i |
10 | j |
11 | k |