最新插件下載地址: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 |