home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
dtt250
/
dttrenum.mac
< prev
next >
Wrap
Text File
|
1995-08-20
|
853b
|
42 lines
// 自動番号付けマクロ V1.00 for 秀丸エディタ(斉藤秀夫氏作)
// 所望範囲を行単位で選択し、このマクロを実行
// 例)実行前 実行後
// ,winfile.exe 0=,winfile.exe
// 8=,control.exe → 1=,control.exe
// 4=,cal.exe 2=,cal.exe
if (basename!="dtt.ini") {
message "dtt.ini 編集専用マクロです" ;
endmacro ;
}
#lct=seltopy ;
#endline=selendy ;
#insNum=0 ;
escape ;
while (#lct<#endline) {
$sbuf=gettext(0,#lct,5,#lct) ;
#chct=0 ;
#insflag=0 ;
while (#chct<3) {
$ch=midstr($sbuf,#chct,1) ;
if ($ch=="=") {
moveto 0,#lct ;
beginsel ;
moveto #chct+1,#lct ;
delete ;
insert str(#insNum)+"=" ;
#insflag=1 ;
break ;
}
#chct=#chct+1 ;
}
if (!#insflag) {
moveto 0,#lct ;
insert str(#insNum)+"=" ;
}
#insNum=#insNum+1 ;
#lct=#lct+1 ;
}