1.将上面的代码保存为*.jsee文件
2.在EmEditor宏菜单中将该文件导入
3.选中要去除重复的文本,执行此宏即可
var s = document.selection.Text;
var ss = s.split("\r\n");
var Out = "";
var i = 0, j = 0, FindIt = false;
var OutArray = new Object();
for ( i=0; i<ss.length; i++ ) {
OutArray[ss[i]] = "";
}
for ( var key in OutArray ) {
Out += key + "\r\n"
}
document.selection.Text = Out;
pewenvqsod Lv.1
3天前
博主太厉害了!