////////////////////////////////////////////////// // REVLINES.MAC by nyan // 秀丸マクロ // // テキストの行(論理行)を逆順に入れ替えます。 // 範囲指定してある場合は、その範囲だけを処理します。 // disabledraw; if (selecting) { escape; moveto seltopx,seltopy; #y0=lineno; moveto selendx,selendy; #y1=lineno; } else {#y0=1; gofileend; if (linelen2!=0) insert "\n"; #y1=lineno;} if (column==0) #y1=#y1-1; while(#n<#y1-#y0) { movetolineno 1,#y1; selectline; cut; movetolineno 1,#y0+#n; paste; #n=#n+1; }