将选择范围内的固定行数的行内容以逗号等分隔符连接
例:
abc
edf
->abc,edf
#title=""
#tooltip="commaAppender"
if( !document.selection.IsEmpty ) {
var a = document.selection.Text.split("\r\n");
for( var line = 0; line < a.length;){
var sum = "";
// 每200行使用逗号合并
for( var i = 0; i < 200 && line < a.length; i++ ){
sum = sum + a[line] + ",";
line++;
}
//bOrgCombine = CombineHistory;
//CombineHistory = true;
document.selection.CharRight();
document.selection.NewLine();
document.selection.Text = sum;
//CombineHistory = bOrgCombine;
}
}