Source Insight---自定义宏
来源:互联网 发布:网络商业计划书 编辑:程序博客网 时间:2024/05/24 02:37
Source Insight 自定宏,老是忘了..今天整理了一下.做个备份
参考.http://blog.csdn.net/nieliquan/article/details/7917773
macro InsertComment()
{MyName = "zlk" //getenv(MYNAME) 修改者
//MyComment = "modify" //注释
MyI ="1" //0为删除 1 为增加 2为更改
hbuf = GetCurrentBuf()
hwnd = GetCurrentWnd()
lnFirst = GetWndSelLnFirst(hwnd)
lnLast = GetWndSelLnLast(hwnd)
//InsBufLine(hbuf, lnFirst, "//")
//获得界面输入信息
//if(strlen( MyI ) == 0)
{
MyI = Ask("0:del 1:add 2:update")
}
//szMyName = getreg(MYNAME)
//if(strlen( szMyName ) == 0)
//{
// szMyName = Ask("Enter your name:")
// setreg(MYNAME, szMyName)
//}
// Get current time
szTime = GetSysTime(1)
Day = szTime.Day
Month = szTime.Month
Year = szTime.Year
if (Day < 10)
szDay = "0@Day@"
else
szDay = Day
if (Month < 10)
szMonth = "0@Month@"
else
szMonth = Month
//InsBufLine(hbuf, lnFirst, "#if 1 //@MyName@ @Year@@szMonth@@szDay@ @MyComment@")//InsBufLine
//InsBufLine(hbuf, lnLast+2, "#endif //@MyName@ @Year@@szMonth@@szDay@ @MyComment@")
if(MyI==0)
{
InsBufLine(hbuf, lnFirst, "#if 0 //@MyName@ @Year@@szMonth@@szDay@ del start")//InsBufLine
InsBufLine(hbuf, lnLast+2, "#endif //del end")
}
else if(MyI==1)
{
InsBufLine(hbuf, lnFirst, "#if 1 //@MyName@ @Year@@szMonth@@szDay@ add start")//InsBufLine
InsBufLine(hbuf, lnLast+2, "#endif //add end")
}
else if(MyI==2)
{
InsBufLine(hbuf, lnFirst, "#if 1 //@MyName@ @Year@@szMonth@@szDay@ modify start")//InsBufLine
InsBufLine(hbuf, lnFirst+1, "#else //modify")//InsBufLine
InsBufLine(hbuf, lnLast+3, "#endif //modify end")
}
}
0 0
- Source Insight---自定义宏
- Source Insight 自定义宏函数使用说明
- Source Insight自定义快捷键
- Source Insight自定义快捷键
- source insight 自定义注释命令
- source insight 中自定义命令
- Source Insight Editplus 自定义 快捷键
- Source Insight 宏的使用与自定义快捷键
- Source Insight 宏的使用与自定义快捷键
- source insight常用宏
- Source Insight 宏
- Source Insight宏语言
- source insight 宏
- Source Insight 宏
- source insight 配置宏
- source Insight常用自定义命令( custom commands )
- Source Insight使用之添加自定义语言
- source insight中加入自定义源文件类型
- UI层自动化测试框架(四):对象库层
- POJ 2373 Dividing the Path(队列dp)
- Egret开发HTML5小游戏代码分享
- 飞机游戏:屏幕滚动,飞机拖拽,边界设置,子弹跟随
- bzoj 3238 差异
- Source Insight---自定义宏
- BZOJ 1269 splay
- 字符串的分隔方法 split()
- 博客转移到 http://blog.sxin.me
- curse下面的键盘模式输入
- 9.7总结
- 代码的规范性
- Permutations
- 递归解决全排列问题