1. codeblocks的配置文件是default.conf,在Windows系统下,该文件在C:\Documents and Settings\Administrator\Application Data\CodeBlocks;在Linux系统下,该文件在~/.codeblocks。在C盘下搜索文件default.conf,该文件夹在codeblocks首次打开后才会生成。
首先关闭codeblocks,找到default.conf并用文本编辑器打开,将以下的内容替换成原来<colour_sets></colour_sets>: (建议先备份到桌面)
1 <colour_sets> 2 3 <default /> 4 5 <ACTIVE_COLOUR_SET> 6 7 <str> 8 9 <![CDATA[Vim]]> 10 11 </str> 12 13 </ACTIVE_COLOUR_SET> 14 15 <ACTIVE_LANG> 16 17 <str> 18 19 <![CDATA[C/C++]]> 20 21 </str> 22 23 </ACTIVE_LANG> 24 25 <brightyellow> 26 27 <NAME> 28 29 <str> 30 31 <![CDATA[BrightYellow]]> 32 33 </str> 34 35 </NAME> 36 37 <cc> 38 39 <style0> 40 41 <BACK> 42 43 <colour r="255" g="255" b="208" /> 44 45 </BACK> 46 47 <NAME> 48 49 <str> 50 51 <![CDATA[Default]]> 52 53 </str> 54 55 </NAME> 56 57 </style0> 58 59 <style1> 60 61 <FORE> 62 63 <colour r="158" g="158" b="158" /> 64 65 </FORE> 66 67 <NAME> 68 69 <str> 70 71 <![CDATA[Comment (normal)]]> 72 73 </str> 74 75 </NAME> 76 77 </style1> 78 79 <style2> 80 81 <FORE> 82 83 <colour r="158" g="158" b="158" /> 84 85 </FORE> 86 87 <NAME> 88 89 <str> 90 91 <![CDATA[Comment (normal)]]> 92 93 </str> 94 95 </NAME> 96 97 </style2> 98 99 <style3> 100 101 <FORE> 102 103 <colour r="128" g="128" b="128" /> 104 105 </FORE> 106 107 <NAME> 108 109 <str> 110 111 <![CDATA[Comment line (normal)]]> 112 113 </str> 114 115 </NAME> 116 117 </style3> 118 119 <style4> 120 121 <FORE> 122 123 <colour r="128" g="128" b="218" /> 124 125 </FORE> 126 127 <BOLD bool="0" /> 128 129 <NAME> 130 131 <str> 132 133 <![CDATA[Comment (documentation)]]> 134 135 </str> 136 137 </NAME> 138 139 </style4> 140 141 <style5> 142 143 <BOLD bool="0" /> 144 145 <NAME> 146 147 <str> 148 149 <![CDATA[Comment line (documentation)]]> 150 151 </str> 152 153 </NAME> 154 155 </style5> 156 157 <style9> 158 159 <BOLD bool="0" /> 160 161 <NAME> 162 163 <str> 164 165 <![CDATA[Keyword]]> 166 167 </str> 168 169 </NAME> 170 171 </style9> 172 173 <style10> 174 175 <BOLD bool="0" /> 176 177 <NAME> 178 179 <str> 180 181 <![CDATA[User keyword]]> 182 183 </str> 184 185 </NAME> 186 187 </style10> 188 189 <style18> 190 191 <BACK> 192 193 <colour r="0" g="255" b="0" /> 194 195 </BACK> 196 197 <NAME> 198 199 <str> 200 201 <![CDATA[Active line]]> 202 203 </str> 204 205 </NAME> 206 207 </style18> 208 209 <NAME> 210 211 <str> 212 213 <![CDATA[C/C++]]> 214 215 </str> 216 217 </NAME> 218 219 <editor> 220 221 <keywords /> 222 223 </editor> 224 225 </cc> 226 227 </brightyellow> 228 229 <sublime> 230 231 <NAME> 232 233 <str> 234 235 <![CDATA[Sublime]]> 236 237 </str> 238 239 </NAME> 240 241 <cc> 242 243 <style0> 244 245 <FORE> 246 247 <colour r="255" g="255" b="255" /> 248 249 </FORE> 250 251 <BACK> 252 253 <colour r="40" g="40" b="40" /> 254 255 </BACK> 256 257 <NAME> 258 259 <str> 260 261 <![CDATA[Default]]> 262 263 </str> 264 265 </NAME> 266 267 </style0> 268 269 <style1> 270 271 <FORE> 272 273 <colour r="106" g="102" b="85" /> 274 275 </FORE> 276 277 <NAME> 278 279 <str> 280 281 <![CDATA[Comment (normal)]]> 282 283 </str> 284 285 </NAME> 286 287 </style1> 288 289 <style2> 290 291 <FORE> 292 293 <colour r="106" g="102" b="85" /> 294 295 </FORE> 296 297 <NAME> 298 299 <str> 300 301 <![CDATA[Comment (normal)]]> 302 303 </str> 304 305 </NAME> 306 307 </style2> 308 309 <style3> 310 311 <FORE> 312 313 <colour r="106" g="102" b="85" /> 314 315 </FORE> 316 317 <NAME> 318 319 <str> 320 321 <![CDATA[Comment line (normal)]]> 322 323 </str> 324 325 </NAME> 326 327 </style3> 328 329 <style4> 330 331 <FORE> 332 333 <colour r="58" g="81" b="133" /> 334 335 </FORE> 336 337 <BOLD bool="0" /> 338 339 <NAME> 340 341 <str> 342 343 <![CDATA[Comment (documentation)]]> 344 345 </str> 346 347 </NAME> 348 349 </style4> 350 351 <style8> 352 353 <FORE> 354 355 <colour r="150" g="110" b="220" /> 356 357 </FORE> 358 359 <NAME> 360 361 <str> 362 363 <![CDATA[Number]]> 364 365 </str> 366 367 </NAME> 368 369 </style8> 370 371 <style9> 372 373 <FORE> 374 375 <colour r="100" g="210" b="230" /> 376 377 </FORE> 378 379 <BOLD bool="0" /> 380 381 <NAME> 382 383 <str> 384 385 <![CDATA[Keyword]]> 386 387 </str> 388 389 </NAME> 390 391 </style9> 392 393 <style10> 394 395 <FORE> 396 397 <colour r="156" g="242" b="132" /> 398 399 </FORE> 400 401 <BOLD bool="0" /> 402 403 <NAME> 404 405 <str> 406 407 <![CDATA[User keyword]]> 408 409 </str> 410 411 </NAME> 412 413 </style10> 414 415 <style11> 416 417 <FORE> 418 419 <colour r="230" g="220" b="110" /> 420 421 </FORE> 422 423 <NAME> 424 425 <str> 426 427 <![CDATA[String]]> 428 429 </str> 430 431 </NAME> 432 433 </style11> 434 435 <style12> 436 437 <FORE> 438 439 <colour r="230" g="220" b="110" /> 440 441 </FORE> 442 443 <NAME> 444 445 <str> 446 447 <![CDATA[String]]> 448 449 </str> 450 451 </NAME> 452 453 </style12> 454 455 <style16> 456 457 <FORE> 458 459 <colour r="250" g="40" b="110" /> 460 461 </FORE> 462 463 <NAME> 464 465 <str> 466 467 <![CDATA[Operator]]> 468 469 </str> 470 471 </NAME> 472 473 </style16> 474 475 <style17> 476 477 <BACK> 478 479 <colour r="75" g="72" b="65" /> 480 481 </BACK> 482 483 <NAME> 484 485 <str> 486 487 <![CDATA[Selection]]> 488 489 </str> 490 491 </NAME> 492 493 </style17> 494 495 <style18> 496 497 <BACK> 498 499 <colour r="64" g="128" b="128" /> 500 501 </BACK> 502 503 <NAME> 504 505 <str> 506 507 <![CDATA[Active line]]> 508 509 </str> 510 511 </NAME> 512 513 </style18> 514 515 <NAME> 516 517 <str> 518 519 <![CDATA[C/C++]]> 520 521 </str> 522 523 </NAME> 524 525 <editor> 526 527 <keywords /> 528 529 </editor> 530 531 </cc> 532 533 </sublime> 534 535 <darkgray> 536 537 <NAME> 538 539 <str> 540 541 <![CDATA[Darkgray]]> 542 543 </str> 544 545 </NAME> 546 547 <cc> 548 549 <style0> 550 551 <FORE> 552 553 <colour r="255" g="255" b="255" /> 554 555 </FORE> 556 557 <BACK> 558 559 <colour r="42" g="56" b="54" /> 560 561 </BACK> 562 563 <NAME> 564 565 <str> 566 567 <![CDATA[Default]]> 568 569 </str> 570 571 </NAME> 572 573 </style0> 574 575 <style5> 576 577 <BOLD bool="0" /> 578 579 <NAME> 580 581 <str> 582 583 <![CDATA[Comment line (documentation)]]> 584 585 </str> 586 587 </NAME> 588 589 </style5> 590 591 <style8> 592 593 <FORE> 594 595 <colour r="255" g="142" b="255" /> 596 597 </FORE> 598 599 <NAME> 600 601 <str> 602 603 <![CDATA[Number]]> 604 605 </str> 606 607 </NAME> 608 609 </style8> 610 611 <style9> 612 613 <FORE> 614 615 <colour r="140" g="196" b="255" /> 616 617 </FORE> 618 619 <NAME> 620 621 <str> 622 623 <![CDATA[Keyword]]> 624 625 </str> 626 627 </NAME> 628 629 </style9> 630 631 <style10> 632 633 <FORE> 634 635 <colour r="255" g="230" b="80" /> 636 637 </FORE> 638 639 <BOLD bool="0" /> 640 641 <NAME> 642 643 <str> 644 645 <![CDATA[User keyword]]> 646 647 </str> 648 649 </NAME> 650 651 </style10> 652 653 <style11> 654 655 <FORE> 656 657 <colour r="255" g="128" b="0" /> 658 659 </FORE> 660 661 <NAME> 662 663 <str> 664 665 <![CDATA[String]]> 666 667 </str> 668 669 </NAME> 670 671 </style11> 672 673 <style12> 674 675 <FORE> 676 677 <colour r="255" g="128" b="0" /> 678 679 </FORE> 680 681 <NAME> 682 683 <str> 684 685 <![CDATA[String]]> 686 687 </str> 688 689 </NAME> 690 691 </style12> 692 693 <style15> 694 695 <FORE> 696 697 <colour r="115" g="210" b="22" /> 698 699 </FORE> 700 701 <NAME> 702 703 <str> 704 705 <![CDATA[Preprocessor]]> 706 707 </str> 708 709 </NAME> 710 711 </style15> 712 713 <style16> 714 715 <FORE> 716 717 <colour r="255" g="0" b="128" /> 718 719 </FORE> 720 721 <NAME> 722 723 <str> 724 725 <![CDATA[Operator]]> 726 727 </str> 728 729 </NAME> 730 731 </style16> 732 733 <style17> 734 735 <BACK> 736 737 <colour r="128" g="128" b="128" /> 738 739 </BACK> 740 741 <NAME> 742 743 <str> 744 745 <![CDATA[Selection]]> 746 747 </str> 748 749 </NAME> 750 751 </style17> 752 753 <style18> 754 755 <BACK> 756 757 <colour r="64" g="128" b="128" /> 758 759 </BACK> 760 761 <NAME> 762 763 <str> 764 765 <![CDATA[Active line]]> 766 767 </str> 768 769 </NAME> 770 771 </style18> 772 773 <NAME> 774 775 <str> 776 777 <![CDATA[C/C++]]> 778 779 </str> 780 781 </NAME> 782 783 <editor> 784 785 <keywords /> 786 787 </editor> 788 789 </cc> 790 791 </darkgray> 792 793 <idel> 794 795 <NAME> 796 797 <str> 798 799 <![CDATA[IDEL]]> 800 801 </str> 802 803 </NAME> 804 805 <cc> 806 807 <style0> 808 809 <BACK> 810 811 <colour r="245" g="245" b="245" /> 812 813 </BACK> 814 815 <NAME> 816 817 <str> 818 819 <![CDATA[Default]]> 820 821 </str> 822 823 </NAME> 824 825 </style0> 826 827 <style1> 828 829 <FORE> 830 831 <colour r="135" g="135" b="135" /> 832 833 </FORE> 834 835 <NAME> 836 837 <str> 838 839 <![CDATA[Comment (normal)]]> 840 841 </str> 842 843 </NAME> 844 845 </style1> 846 847 <style2> 848 849 <FORE> 850 851 <colour r="135" g="135" b="135" /> 852 853 </FORE> 854 855 <NAME> 856 857 <str> 858 859 <![CDATA[Comment (normal)]]> 860 861 </str> 862 863 </NAME> 864 865 </style2> 866 867 <style3> 868 869 <FORE> 870 871 <colour r="135" g="135" b="135" /> 872 873 </FORE> 874 875 <NAME> 876 877 <str> 878 879 <![CDATA[Comment line (normal)]]> 880 881 </str> 882 883 </NAME> 884 885 </style3> 886 887 <style4> 888 889 <BOLD bool="0" /> 890 891 <NAME> 892 893 <str> 894 895 <![CDATA[Comment (documentation)]]> 896 897 </str> 898 899 </NAME> 900 901 </style4> 902 903 <style9> 904 905 <FORE> 906 907 <colour r="255" g="128" b="64" /> 908 909 </FORE> 910 911 <NAME> 912 913 <str> 914 915 <![CDATA[Keyword]]> 916 917 </str> 918 919 </NAME> 920 921 </style9> 922 923 <style10> 924 925 <FORE> 926 927 <colour r="156" g="37" b="166" /> 928 929 </FORE> 930 931 <BOLD bool="0" /> 932 933 <NAME> 934 935 <str> 936 937 <![CDATA[User keyword]]> 938 939 </str> 940 941 </NAME> 942 943 </style10> 944 945 <style11> 946 947 <FORE> 948 949 <colour r="0" g="155" b="45" /> 950 951 </FORE> 952 953 <NAME> 954 955 <str> 956 957 <![CDATA[String]]> 958 959 </str> 960 961 </NAME> 962 963 </style11> 964 965 <style12> 966 967 <FORE> 968 969 <colour r="0" g="155" b="45" /> 970 971 </FORE> 972 973 <NAME> 974 975 <str> 976 977 <![CDATA[String]]> 978 979 </str> 980 981 </NAME> 982 983 </style12> 984 985 <style15> 986 987 <FORE> 988 989 <colour r="0" g="128" b="255" /> 990 991 </FORE> 992 993 <NAME> 994 995 <str> 996 997 <![CDATA[Preprocessor]]> 998 999 </str> 1000 1001 </NAME> 1002 1003 </style15> 1004 1005 <style18> 1006 1007 <BACK> 1008 1009 <colour r="0" g="255" b="0" /> 1010 1011 </BACK> 1012 1013 <NAME> 1014 1015 <str> 1016 1017 <![CDATA[Active line]]> 1018 1019 </str> 1020 1021 </NAME> 1022 1023 </style18> 1024 1025 <NAME> 1026 1027 <str> 1028 1029 <![CDATA[C/C++]]> 1030 1031 </str> 1032 1033 </NAME> 1034 1035 <editor> 1036 1037 <keywords /> 1038 1039 </editor> 1040 1041 </cc> 1042 1043 </idel> 1044 1045 <oblivion> 1046 1047 <NAME> 1048 1049 <str> 1050 1051 <![CDATA[oblivion]]> 1052 1053 </str> 1054 1055 </NAME> 1056 1057 <cc> 1058 1059 <style0> 1060 1061 <FORE> 1062 1063 <colour r="238" g="238" b="236" /> 1064 1065 </FORE> 1066 1067 <BACK> 1068 1069 <colour r="46" g="52" b="54" /> 1070 1071 </BACK> 1072 1073 <NAME> 1074 1075 <str> 1076 1077 <![CDATA[Default]]> 1078 1079 </str> 1080 1081 </NAME> 1082 1083 </style0> 1084 1085 <style1> 1086 1087 <FORE> 1088 1089 <colour r="238" g="238" b="236" /> 1090 1091 </FORE> 1092 1093 <BACK> 1094 1095 <colour r="46" g="52" b="54" /> 1096 1097 </BACK> 1098 1099 <NAME> 1100 1101 <str> 1102 1103 <![CDATA[Default]]> 1104 1105 </str> 1106 1107 </NAME> 1108 1109 </style1> 1110 1111 <style5> 1112 1113 <FORE> 1114 1115 <colour r="136" g="138" b="133" /> 1116 1117 </FORE> 1118 1119 <NAME> 1120 1121 <str> 1122 1123 <![CDATA[Comment (normal)]]> 1124 1125 </str> 1126 1127 </NAME> 1128 1129 </style5> 1130 1131 <style6> 1132 1133 <FORE> 1134 1135 <colour r="136" g="138" b="133" /> 1136 1137 </FORE> 1138 1139 <NAME> 1140 1141 <str> 1142 1143 <![CDATA[Comment (normal)]]> 1144 1145 </str> 1146 1147 </NAME> 1148 1149 </style6> 1150 1151 <style7> 1152 1153 <FORE> 1154 1155 <colour r="136" g="138" b="133" /> 1156 1157 </FORE> 1158 1159 <NAME> 1160 1161 <str> 1162 1163 <![CDATA[Comment (normal)]]> 1164 1165 </str> 1166 1167 </NAME> 1168 1169 </style7> 1170 1171 <style8> 1172 1173 <FORE> 1174 1175 <colour r="136" g="138" b="133" /> 1176 1177 </FORE> 1178 1179 <NAME> 1180 1181 <str> 1182 1183 <![CDATA[Comment (normal)]]> 1184 1185 </str> 1186 1187 </NAME> 1188 1189 </style8> 1190 1191 <style11> 1192 1193 <FORE> 1194 1195 <colour r="52" g="101" b="164" /> 1196 1197 </FORE> 1198 1199 <BOLD bool="0" /> 1200 1201 <NAME> 1202 1203 <str> 1204 1205 <![CDATA[Comment (documentation)]]> 1206 1207 </str> 1208 1209 </NAME> 1210 1211 </style11> 1212 1213 <style12> 1214 1215 <FORE> 1216 1217 <colour r="52" g="101" b="164" /> 1218 1219 </FORE> 1220 1221 <BOLD bool="0" /> 1222 1223 <NAME> 1224 1225 <str> 1226 1227 <![CDATA[Comment (documentation)]]> 1228 1229 </str> 1230 1231 </NAME> 1232 1233 </style12> 1234 1235 <style17> 1236 1237 <FORE> 1238 1239 <colour r="164" g="0" b="0" /> 1240 1241 </FORE> 1242 1243 <NAME> 1244 1245 <str> 1246 1247 <![CDATA[Comment keyword error (documentation)]]> 1248 1249 </str> 1250 1251 </NAME> 1252 1253 </style17> 1254 1255 <style18> 1256 1257 <FORE> 1258 1259 <colour r="164" g="0" b="0" /> 1260 1261 </FORE> 1262 1263 <NAME> 1264 1265 <str> 1266 1267 <![CDATA[Comment keyword error (documentation)]]> 1268 1269 </str> 1270 1271 </NAME> 1272 1273 </style18> 1274 1275 <style19> 1276 1277 <FORE> 1278 1279 <colour r="173" g="127" b="168" /> 1280 1281 </FORE> 1282 1283 <BACK> 1284 1285 <colour r="46" g="52" b="54" /> 1286 1287 </BACK> 1288 1289 <BOLD bool="1" /> 1290 1291 <NAME> 1292 1293 <str> 1294 1295 <![CDATA[Number]]> 1296 1297 </str> 1298 1299 </NAME> 1300 1301 </style19> 1302 1303 <style21> 1304 1305 <FORE> 1306 1307 <colour r="233" g="185" b="110" /> 1308 1309 </FORE> 1310 1311 <NAME> 1312 1313 <str> 1314 1315 <![CDATA[Keyword]]> 1316 1317 </str> 1318 1319 </NAME> 1320 1321 </style21> 1322 1323 <style23> 1324 1325 <FORE> 1326 1327 <colour r="78" g="154" b="6" /> 1328 1329 </FORE> 1330 1331 <NAME> 1332 1333 <str> 1334 1335 <![CDATA[User keyword]]> 1336 1337 </str> 1338 1339 </NAME> 1340 1341 </style23> 1342 1343 <style27> 1344 1345 <FORE> 1346 1347 <colour r="185" g="49" b="0" /> 1348 1349 </FORE> 1350 1351 <BACK> 1352 1353 <colour r="30" g="3" b="0" /> 1354 1355 </BACK> 1356 1357 <NAME> 1358 1359 <str> 1360 1361 <![CDATA[String]]> 1362 1363 </str> 1364 1365 </NAME> 1366 1367 </style27> 1368 1369 <style28> 1370 1371 <FORE> 1372 1373 <colour r="185" g="49" b="0" /> 1374 1375 </FORE> 1376 1377 <BACK> 1378 1379 <colour r="30" g="3" b="0" /> 1380 1381 </BACK> 1382 1383 <NAME> 1384 1385 <str> 1386 1387 <![CDATA[String]]> 1388 1389 </str> 1390 1391 </NAME> 1392 1393 </style28> 1394 1395 <style31> 1396 1397 <FORE> 1398 1399 <colour r="245" g="121" b="0" /> 1400 1401 </FORE> 1402 1403 <NAME> 1404 1405 <str> 1406 1407 <![CDATA[Character]]> 1408 1409 </str> 1410 1411 </NAME> 1412 1413 </style31> 1414 1415 <style33> 1416 1417 <FORE> 1418 1419 <colour r="211" g="215" b="207" /> 1420 1421 </FORE> 1422 1423 <NAME> 1424 1425 <str> 1426 1427 <![CDATA[UUID]]> 1428 1429 </str> 1430 1431 </NAME> 1432 1433 </style33> 1434 1435 <style34> 1436 1437 <FORE> 1438 1439 <colour r="78" g="154" b="6" /> 1440 1441 </FORE> 1442 1443 <NAME> 1444 1445 <str> 1446 1447 <![CDATA[Preprocessor]]> 1448 1449 </str> 1450 1451 </NAME> 1452 1453 </style34> 1454 1455 <style36> 1456 1457 <FORE> 1458 1459 <colour r="233" g="185" b="110" /> 1460 1461 </FORE> 1462 1463 <NAME> 1464 1465 <str> 1466 1467 <![CDATA[Operator]]> 1468 1469 </str> 1470 1471 </NAME> 1472 1473 </style36> 1474 1475 <style38> 1476 1477 <BACK> 1478 1479 <colour r="23" g="32" b="24" /> 1480 1481 </BACK> 1482 1483 <NAME> 1484 1485 <str> 1486 1487 <![CDATA[Selection]]> 1488 1489 </str> 1490 1491 </NAME> 1492 1493 </style38> 1494 1495 <style39> 1496 1497 <BACK> 1498 1499 <colour r="24" g="33" b="33" /> 1500 1501 </BACK> 1502 1503 <NAME> 1504 1505 <str> 1506 1507 <![CDATA[Active line]]> 1508 1509 </str> 1510 1511 </NAME> 1512 1513 </style39> 1514 1515 <style40> 1516 1517 <BACK> 1518 1519 <colour r="114" g="159" b="207" /> 1520 1521 </BACK> 1522 1523 <NAME> 1524 1525 <str> 1526 1527 <![CDATA[Matching brace highlight]]> 1528 1529 </str> 1530 1531 </NAME> 1532 1533 </style40> 1534 1535 <style41> 1536 1537 <FORE> 1538 1539 <colour r="238" g="238" b="236" /> 1540 1541 </FORE> 1542 1543 <BACK> 1544 1545 <colour r="164" g="0" b="0" /> 1546 1547 </BACK> 1548 1549 <NAME> 1550 1551 <str> 1552 1553 <![CDATA[No matching brace highlight]]> 1554 1555 </str> 1556 1557 </NAME> 1558 1559 </style41> 1560 1561 <NAME> 1562 1563 <str> 1564 1565 <![CDATA[C/C++]]> 1566 1567 </str> 1568 1569 </NAME> 1570 1571 </cc> 1572 1573 </oblivion> 1574 1575 <vim> 1576 1577 <NAME> 1578 1579 <str> 1580 1581 <![CDATA[Vim]]> 1582 1583 </str> 1584 1585 </NAME> 1586 1587 <cc> 1588 1589 <style0> 1590 1591 <FORE> 1592 1593 <colour r="192" g="192" b="192" /> 1594 1595 </FORE> 1596 1597 <BACK> 1598 1599 <colour r="0" g="0" b="0" /> 1600 1601 </BACK> 1602 1603 <NAME> 1604 1605 <str> 1606 1607 <![CDATA[Default]]> 1608 1609 </str> 1610 1611 </NAME> 1612 1613 </style0> 1614 1615 <style1> 1616 1617 <FORE> 1618 1619 <colour r="192" g="192" b="192" /> 1620 1621 </FORE> 1622 1623 <BACK> 1624 1625 <colour r="0" g="0" b="0" /> 1626 1627 </BACK> 1628 1629 <NAME> 1630 1631 <str> 1632 1633 <![CDATA[Default]]> 1634 1635 </str> 1636 1637 </NAME> 1638 1639 </style1> 1640 1641 <style5> 1642 1643 <FORE> 1644 1645 <colour r="128" g="255" b="255" /> 1646 1647 </FORE> 1648 1649 <NAME> 1650 1651 <str> 1652 1653 <![CDATA[Comment (normal)]]> 1654 1655 </str> 1656 1657 </NAME> 1658 1659 </style5> 1660 1661 <style6> 1662 1663 <FORE> 1664 1665 <colour r="128" g="255" b="255" /> 1666 1667 </FORE> 1668 1669 <NAME> 1670 1671 <str> 1672 1673 <![CDATA[Comment (normal)]]> 1674 1675 </str> 1676 1677 </NAME> 1678 1679 </style6> 1680 1681 <style7> 1682 1683 <FORE> 1684 1685 <colour r="128" g="255" b="255" /> 1686 1687 </FORE> 1688 1689 <NAME> 1690 1691 <str> 1692 1693 <![CDATA[Comment (normal)]]> 1694 1695 </str> 1696 1697 </NAME> 1698 1699 </style7> 1700 1701 <style8> 1702 1703 <FORE> 1704 1705 <colour r="128" g="255" b="255" /> 1706 1707 </FORE> 1708 1709 <NAME> 1710 1711 <str> 1712 1713 <![CDATA[Comment (normal)]]> 1714 1715 </str> 1716 1717 </NAME> 1718 1719 </style8> 1720 1721 <style9> 1722 1723 <FORE> 1724 1725 <colour r="0" g="255" b="255" /> 1726 1727 </FORE> 1728 1729 <NAME> 1730 1731 <str> 1732 1733 <![CDATA[Comment line (normal)]]> 1734 1735 </str> 1736 1737 </NAME> 1738 1739 </style9> 1740 1741 <style10> 1742 1743 <FORE> 1744 1745 <colour r="0" g="255" b="255" /> 1746 1747 </FORE> 1748 1749 <NAME> 1750 1751 <str> 1752 1753 <![CDATA[Comment line (normal)]]> 1754 1755 </str> 1756 1757 </NAME> 1758 1759 </style10> 1760 1761 <style11> 1762 1763 <BOLD bool="0" /> 1764 1765 <NAME> 1766 1767 <str> 1768 1769 <![CDATA[Comment (documentation)]]> 1770 1771 </str> 1772 1773 </NAME> 1774 1775 </style11> 1776 1777 <style12> 1778 1779 <BOLD bool="0" /> 1780 1781 <NAME> 1782 1783 <str> 1784 1785 <![CDATA[Comment (documentation)]]> 1786 1787 </str> 1788 1789 </NAME> 1790 1791 </style12> 1792 1793 <style19> 1794 1795 <FORE> 1796 1797 <colour r="255" g="0" b="255" /> 1798 1799 </FORE> 1800 1801 <NAME> 1802 1803 <str> 1804 1805 <![CDATA[Number]]> 1806 1807 </str> 1808 1809 </NAME> 1810 1811 </style19> 1812 1813 <style21> 1814 1815 <FORE> 1816 1817 <colour r="0" g="255" b="0" /> 1818 1819 </FORE> 1820 1821 <BOLD bool="0" /> 1822 1823 <NAME> 1824 1825 <str> 1826 1827 <![CDATA[Keyword]]> 1828 1829 </str> 1830 1831 </NAME> 1832 1833 </style21> 1834 1835 <style23> 1836 1837 <FORE> 1838 1839 <colour r="255" g="255" b="0" /> 1840 1841 </FORE> 1842 1843 <BOLD bool="0" /> 1844 1845 <NAME> 1846 1847 <str> 1848 1849 <![CDATA[User keyword]]> 1850 1851 </str> 1852 1853 </NAME> 1854 1855 </style23> 1856 1857 <style27> 1858 1859 <FORE> 1860 1861 <colour r="255" g="0" b="255" /> 1862 1863 </FORE> 1864 1865 <NAME> 1866 1867 <str> 1868 1869 <![CDATA[String]]> 1870 1871 </str> 1872 1873 </NAME> 1874 1875 </style27> 1876 1877 <style28> 1878 1879 <FORE> 1880 1881 <colour r="255" g="0" b="255" /> 1882 1883 </FORE> 1884 1885 <NAME> 1886 1887 <str> 1888 1889 <![CDATA[String]]> 1890 1891 </str> 1892 1893 </NAME> 1894 1895 </style28> 1896 1897 <style31> 1898 1899 <FORE> 1900 1901 <colour r="255" g="0" b="0" /> 1902 1903 </FORE> 1904 1905 <NAME> 1906 1907 <str> 1908 1909 <![CDATA[Character]]> 1910 1911 </str> 1912 1913 </NAME> 1914 1915 </style31> 1916 1917 <style34> 1918 1919 <FORE> 1920 1921 <colour r="0" g="0" b="255" /> 1922 1923 </FORE> 1924 1925 <NAME> 1926 1927 <str> 1928 1929 <![CDATA[Preprocessor]]> 1930 1931 </str> 1932 1933 </NAME> 1934 1935 </style34> 1936 1937 <style36> 1938 1939 <FORE> 1940 1941 <colour r="255" g="255" b="255" /> 1942 1943 </FORE> 1944 1945 <NAME> 1946 1947 <str> 1948 1949 <![CDATA[Operator]]> 1950 1951 </str> 1952 1953 </NAME> 1954 1955 </style36> 1956 1957 <style38> 1958 1959 <BACK> 1960 1961 <colour r="128" g="128" b="128" /> 1962 1963 </BACK> 1964 1965 <NAME> 1966 1967 <str> 1968 1969 <![CDATA[Selection]]> 1970 1971 </str> 1972 1973 </NAME> 1974 1975 </style38> 1976 1977 <style39> 1978 1979 <BACK> 1980 1981 <colour r="64" g="128" b="128" /> 1982 1983 </BACK> 1984 1985 <NAME> 1986 1987 <str> 1988 1989 <![CDATA[Active line]]> 1990 1991 </str> 1992 1993 </NAME> 1994 1995 </style39> 1996 1997 <NAME> 1998 1999 <str> 2000 2001 <![CDATA[C/C++]]> 2002 2003 </str> 2004 2005 </NAME> 2006 2007 </cc> 2008 2009 </vim> 2010 2011 </colour_sets>
2. 可能用新的界面风格会看不到光标,这个在CodeBlocks内修改,
Settings->editor->Margins and caret->Caret->Colour,选择一个可以辨识的颜色。
3. 修改字体,字体修改在
Settings->editor->General settings->Font,点击Choose,在里面选择。
如果想要改变其他风格可以在Settings/Editor../Syntax Highlighting
在colour theme中选择你想要的风格,你也可以自定义各种颜色。
推荐界面风格Sublime和vim,字体为Consolas。
再附另一些主题 http://blog.csdn.net/gzshun/article/details/8294305