codeblocks的配置文件是default.conf,在Windows系统下,该文件在C:\Documents and Settings\Administrator\Application Data\CodeBlocks;在Linux系统下,该文件在~/.codeblocks。该文件夹在codeblocks首次打开后才会生成。
首先关闭codeblocks,找到default.conf并打开,将以下的内容替换成原来<colour_sets></colour_sets>:
<colour_sets>
<ACTIVE_COLOUR_SET>
<str>
<![CDATA[vim]]>
</str>
</ACTIVE_COLOUR_SET>
<ACTIVE_LANG>
<str>
<![CDATA[C/C++]]>
</str>
</ACTIVE_LANG>
<ulipad>
<NAME>
<str>
<![CDATA[ulipad]]>
</str>
</NAME>
<cc>
<style0>
<FORE>
<colour r="141" g="176" b="211" />
</FORE>
<BACK>
<colour r="17" g="36" b="53" />
</BACK>
<NAME>
<str>
<![CDATA[Default]]>
</str>
</NAME>
</style0>
<style1>
<FORE>
<colour r="141" g="176" b="211" />
</FORE>
<BACK>
<colour r="17" g="36" b="53" />
</BACK>
<NAME>
<str>
<![CDATA[Default]]>
</str>
</NAME>
</style1>
<style5>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style5>
<style6>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style6>
<style7>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style7>
<style8>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style8>
<style11>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style11>
<style12>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style12>
<style13>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style13>
<style14>
<FORE>
<colour r="0" g="207" b="203" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style14>
<style17>
<FORE>
<colour r="111" g="66" b="66" />
</FORE>
<NAME>
<str>
<![CDATA[Comment keyword (documentation)]]>
</str>
</NAME>
</style17>
<style18>
<FORE>
<colour r="111" g="66" b="66" />
</FORE>
<NAME>
<str>
<![CDATA[Comment keyword (documentation)]]>
</str>
</NAME>
</style18>
<style19>
<FORE>
<colour r="0" g="0" b="255" />
</FORE>
<NAME>
<str>
<![CDATA[Comment keyword error (documentation)]]>
</str>
</NAME>
</style19>
<style20>
<FORE>
<colour r="0" g="0" b="255" />
</FORE>
<NAME>
<str>
<![CDATA[Comment keyword error (documentation)]]>
</str>
</NAME>
</style20>
<style23>
<FORE>
<colour r="255" g="255" b="0" />
</FORE>
<NAME>
<str>
<![CDATA[Keyword]]>
</str>
</NAME>
</style23>
<style25>
<FORE>
<colour r="141" g="176" b="211" />
</FORE>
<NAME>
<str>
<![CDATA[User keyword]]>
</str>
</NAME>
</style25>
<style29>
<FORE>
<colour r="0" g="255" b="128" />
</FORE>
<NAME>
<str>
<![CDATA[String]]>
</str>
</NAME>
</style29>
<style30>
<FORE>
<colour r="0" g="255" b="128" />
</FORE>
<NAME>
<str>
<![CDATA[String]]>
</str>
</NAME>
</style30>
<style35>
<FORE>
<colour r="219" g="112" b="219" />
</FORE>
<NAME>
<str>
<![CDATA[UUID]]>
</str>
</NAME>
</style35>
<style36>
<FORE>
<colour r="128" g="128" b="128" />
</FORE>
<NAME>
<str>
<![CDATA[Preprocessor]]>
</str>
</NAME>
</style36>
<style38>
<FORE>
<colour r="240" g="128"