写経用にゆれを減らすバッチファイルですw
noteloadとnotesaveのFILE名を書き換えてお使いくださいw
sdim _4note,65000 notesel _4note noteload "search_any_comment.hsp" ; 先頭のスペースを(あれば)取り除く ; wiki投稿用につけて、大分そのままw repeat notemax tmp="" noteget tmp,cnt tmp=strtrim(tmp,1,' ') noteadd tmp,cnt,1 loop ; 行の終わりに\tがあれば取り除く ; \tしかない行とか(オートインデントでついたとかw) ; そういう行の処理も兼ねて repeat notemax tmp="" noteget tmp,cnt tmp=strtrim(tmp,2,'\t') noteadd tmp,cnt,1 loop ; タブをスペース*2に置き換え タブなしインデントが楽w ; タブかスペースか判断が難しいので インデントはスペースで統一 strrep _4note,"\t"," " ; インデントがスペース*2だと行頭に;があると崩れるので strrep _4note,"; ","; " notesave "search_any_comment.hsp"
タグ
コメントをかく