|
以下のマクロで簡単にJIS(CR+LF)でもEUC(CR)でも保存できますけど???
Ctrl+Shift+S にでも割り当てとくと、便利ですよ。個人的にはダイアログで
の保存のときは現状のままでもいいと思います。
$f = filename2;
if ($f == "")
{
SAVEAS;
if (result == false){ endmacro;}
$f = filename2;
}
$m[0] = "Shift-JIS";
$m[1] = "Unicode";
$m[2] = "EUC";
$m[3] = "JIS";
$m[4] = "UTF-7";
$m[5] = "UTF-8";
mousemenuarray $m,6;
#c = result;
if (#c == 0) { endmacro;}
else if (#c == 1) { saveas $f, sjis;}
else if (#c == 2) { saveas $f, unicode;}
else if (#c == 3) { saveas $f, euc;}
else if (#c == 4) { saveas $f, jis;}
else if (#c == 5) { saveas $f, utf7;}
else if (#c == 6) { saveas $f, utf8;}
$m[0] = "CR+LF";
$m[1] = "LF";
$m[2] = "CR";
mousemenuarray $m,3;
if (result == 0) { endmacro;}
else if (result == 1) { endmacro;}
else if (result == 2) { savelf;}
else if (result == 3)
{
if (#c == 0) { endmacro;}
else if (#c == 1) { saveas $f, sjis, cr;}
else if (#c == 2) { saveas $f, unicode, cr;}
else if (#c == 3) { saveas $f, euc, cr;}
else if (#c == 4) { saveas $f, jis, cr;}
else if (#c == 5) { saveas $f, utf7, cr;}
else if (#c == 6) { saveas $f, utf8, cr;}
}
|
|