// 強調表示定義ファイルの強調表示定義ファイルを作る (2011/12/05) #flags[ 0] = 0x01; $comments[ 0] = "強調1"; #flags[ 1] = 0x41; $comments[ 1] = "強調2"; #flags[ 2] = 0x81; $comments[ 2] = "強調3"; #flags[ 3] = 0xC1; $comments[ 3] = "強調4"; #flags[ 4] = 0x101; $comments[ 4] = "強調5"; #flags[ 5] = 0x141; $comments[ 5] = "強調6"; #flags[ 6] = 0x181; $comments[ 6] = "強調7"; #flags[ 7] = 0x1C1; $comments[ 7] = "強調8"; #flags[ 8] = 0x103; $comments[ 8] = "強調5"; #flags[ 9] = 0x143; $comments[ 9] = "強調6"; #flags[10] = 0x183; $comments[10] = "強調7"; #flags[11] = 0x1C3; $comments[11] = "強調8"; #flags[12] = 0x05; $comments[12] = "行の強調1"; #flags[13] = 0x45; $comments[13] = "行の強調2"; #flags[14] = 0x85; $comments[14] = "行の強調3"; #flags[15] = 0xC5; $comments[15] = "行の強調4"; #flags[16] = 0x03; $comments[16] = "特に強調1"; #flags[17] = 0x43; $comments[17] = "特に強調2"; #flags[18] = 0x83; $comments[18] = "特に強調3"; #flags[19] = 0xC3; $comments[19] = "特に強調4"; #flags = 20; #options[0] = 0x00; // 普通 #options[1] = 0x08; // 大文字/小文字を区別しない #options[2] = 0x10; // 正規表現 #options[3] = 0x18; // 正規表現, 大文字/小文字を区別しない #options[4] = 0x20; // 単語 #options[5] = 0x28; // 単語, 大文字/小文字を区別しない #options[6] = 0x30; // 単語, 正規表現 #options[7] = 0x38; // 単語, 正規表現, 大文字/小文字を区別しない #options = 8; disabledraw; ##i = 0; while (##i < #flags) { insert "// " + $comments[##i] + "\n"; insert str(#flags[##i] | 0x10) + ",^("; ##j = 0; while (##j < #options) { ##flag = #flags[##i] | #options[##j]; if (##flag < 10) insert "0?"; insert str(##flag) + "|"; ##j = ##j + 1; } backspace; insert "),.*$\n"; ##i = ##i + 1; } insert "/\n"; insert "/0003,00000003,00,00,00010003,\"^//\",00000002,\"\"\n"; insert "/001A,00000004,00,00,00010003,\"^/<.*>\",00000002,\"\"\n"; insert "/001A,00000003,00,00,00010003,\"^/\",00000002,\"\"\n"; insert "\n// テスト用\n"; ##i = 0; while (##i < #flags) { insert "// " + $comments[##i] + "\n"; insert str(#flags[##i] | 0x10) + ",■■■■\n"; insert str(#flags[##i] | 0x00) + ",■■■■\n"; insert str(#flags[##i] | 0x08) + ",■■■■\n"; insert str(#flags[##i] | 0x10) + ",■■■■\n"; insert str(#flags[##i] | 0x18) + ",■■■■\n"; insert str(#flags[##i] | 0x20) + ",■■■■\n"; insert str(#flags[##i] | 0x28) + ",■■■■\n"; insert str(#flags[##i] | 0x30) + ",■■■■\n"; insert str(#flags[##i] | 0x38) + ",■■■■\n"; ##i = ##i + 1; } enabledraw;