2年ぶりのプログラミング
EmEditorのマクロ
採番(連番)のさくっと作成
var num; var max; num=1; max=1; while (document.selection.Find("%%num%%", eeFindNext) > 0) { document.selection.Text = ZeroFormat(num,max); num++; } /** * [関数名] ZeroFormat * [機 能] ゼロ埋め * [説 明] 数値が指定した桁数になるまで数値の先頭をゼロで埋める * * @param integer num 数値 * @param integer max 桁数 * @return integer tmpS ゼロ埋め後の数値 */ function ZeroFormat(num,max){ var tmp=""+num; while(tmp.length<max){ tmp="0"+tmp; } return tmp; }
※自己責任
http://f32.aaa.livedoor.jp/~azusa/index.php?t=js&p=formcheck
http://naehatake.com/shop/