标签:div rac config ast 安装使用 ble mod blank closed
<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 |
标签:div rac config ast 安装使用 ble mod blank closed
原文地址:http://www.cnblogs.com/memento/p/5995173.html