EmEditorで開いているファイルを一つの新規fileにまとめるマクロを書いてみました。
//開いているファイルを一つのfileにまとめる
var text =””;
Window.Redraw = false;
docs = new Enumerator( editor.Documents );
for( ; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
doc.Activate();
doc.selection.SelectAll();
text += doc.selection.Text;
doc.selection.collapse();
}
editor.NewFile();
var _new_doc_ = editor.ActiveDocument;
_new_doc_.write( text );
_new_doc_.Activate();
Window.Redraw = true;