home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 November
/
VPR9711A.ISO
/
VPR_DATA
/
Special
/
Koda202
/
koda202.lzh
/
kodama
/
htmcut.mac
< prev
next >
Wrap
Text File
|
1997-02-17
|
2KB
|
55 lines
//こだマクロ(HTML作成:レジスト用)
//htmdel.mac
//このマクロは「秀丸エディタ」用のマクロです。
//97013014
//
//このマクロの複製、再配布を固く禁じます。
//
main:
writeinistr hidemarudir + "\\htmini.txt" , "Line" , "message", "1";
execmacro getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , "macropath" ) + "kodaline.mac";
writeinistr hidemarudir + "\\htmini.txt" , "Line" , "message", "0";
#line = getininum ( hidemarudir + "\\htmini.txt" , "Line" , "line" );
#i = 0;
while ( #line > #i ){
$newline[#i] = getinistr ( hidemarudir + "\\htmini.txt" , "Line" , str ( #i ) );
writeinistr hidemarudir + "\\htmini.txt" , "Line" , str ( #i ) , 0;
#left = 0;
#right = 0;
#left = strstr ( $newline[#i] , "<" );
#right = strstr ( $newline[#i] , ">" );
while ( #right + #left != -2 ){
if ( #left > #right ) #left = 0;
$left = leftstr ( $newline[#i] , #left);
if ( #right == -1 ) #right = 0;
$right = rightstr ( $newline[#i] , strlen( $newline[#i] ) - #right - 1);
call quote midstr ( $newline[#i] , #left , #right - #left + 1);
$newline[#i] = $left + $$return + $right;
title "タグ外し中 - こだマクロ:" + $newline[#i];
#left = strstr ( $newline[#i] , "<" );
#right = strstr ( $newline[#i] , ">" );
continue;
}
$out = $out + $newline[#i] + "\n";
#i = #i + 1;
}
$out = leftstr ( $out , strlen ( $out ) - 1 );
insert $out;
endmacro;
quote:
if ( getininum ( hidemarudir + "\\htmini.txt" , "Line" , "Cutoption" ) == 1 ) return "";
$mid = "";
#mid = strstr ( $$1 , "\"" + getinistr ( hidemarudir + "\\htmini.txt" , "Line" , "reserve" ) );
$midl = $$1;
while ( #mid != -1 ){
$leftq = leftstr ( $midl , #mid );
$rightq = rightstr ( $midl , strlen ( $midl ) - #mid - 1);
#midend = strstr ( $rightq , "\"" ) + 1;
$mid = $mid + leftstr ( $rightq , #midend - 1) + "\n"; $midl = rightstr ( $rightq , strlen ( $rightq ) - #midend );
#mid = strstr ( $midl , "\"" + getinistr ( hidemarudir + "\\htmini.txt" , "Line" , "reserve" ) );
continue;
}
return $mid;