source insight 宏进阶功能( 二 )

<= Lnlast){buf = GetBufLine(hbuf, Ln)//取Ln对应的行if(buf == ""){//跳过空行Ln = Ln + 1continue}PutBufLine(hbuf, Ln, Cat("//", buf))Ln = Ln + 1}SetWndSel(hwnd,selection)}//删除一个//注释,ALT+CTRL+/macro xzy_double_slash_remove(){hwnd = GetCurrentWnd()selection = GetWndSel(hwnd)LnFirst = GetWndSelLnFirst(hwnd)//取首行行号LnLast = GetWndSelLnLast(hwnd)//取末行行号hbuf = GetCurrentBuf()if(GetBufLine(hbuf, 0) == "//magic-number:tph85666031"){stop}Ln = Lnfirstbuf = GetBufLine(hbuf, Ln)len = strlen(buf)while(Ln <= Lnlast){buf = GetBufLine(hbuf, Ln)//取Ln对应的行if(buf == ""){//跳过空行Ln = Ln + 1continue}i=0;while(i