Source insight 多行注释方法
在使用Source insight进行开发时,有时需要多行注释功能。但source insight并没有这样的功能,需要额外的宏来实现。下面介绍实现方法:
- 创建comment.em文件,将下面内容copy到其中
// 添加多行注释
macro MultiLineComment()
{
hwnd = GetCurrentWnd()
selection = GetWndSel(hwnd)
LnFirst =GetWndSelLnFirst(hwnd) //取首行行号
LnLast =GetWndSelLnLast(hwnd) //取末行行号
hbuf = GetCurrentBuf()
if(GetBufLine(hbuf, 0) =="//magic-number:tph85666031"){
stop
}
Ln = Lnfirst
buf = GetBufLine(hbuf, Ln)
len = strlen(buf)