Scite 列出所有發生 |
|
輸出應該像 grep 或 findstr,所以 F4『下一則訊息』應該可以正常運作。
function SciteListAllOccurances() if props.CurrentSelection ~= "" then for m in editor:match( "^.*" .. props.CurrentSelection .. ".*$", SCFIND_REGEXP, 0) do print(props.FileNameExt .. ":" .. (editor:LineFromPosition(m.pos)+1) .. ":" .. m.text); end else alert("The InternalGrep script only searchs for selected text"); end end——艾波懷特,2006 年 1 月 21 日