Author Topic: The Best Customized Oblivion Color Theme for Code::Blocks  (Read 10892 times)

kronomia

  • Guest
The Best Customized Oblivion Color Theme for Code::Blocks
« on: November 15, 2010, 10:38:41 pm »
Dear Programmers,

Since we spend long hours in front of the screen, a good trusted color syntax theme is necessary. Here is a well tested color theme based on the famous Oblivion style.

Code: [Select]
<colour_sets>
<default />
<ACTIVE_COLOUR_SET>
<str>
<![CDATA[oblivion]]>
</str>
</ACTIVE_COLOUR_SET>
<ACTIVE_LANG>
<str>
<![CDATA[C/C++]]>
</str>
</ACTIVE_LANG>
<oblivion>
<NAME>
<str>
<![CDATA[oblivion]]>
</str>
</NAME>
<cc>
<style0>
<FORE>
<colour r="238" g="238" b="236" />
</FORE>
<BACK>
<colour r="46" g="52" b="54" />
</BACK>
<NAME>
<str>
<![CDATA[Default]]>
</str>
</NAME>
</style0>
<style1>
<FORE>
<colour r="136" g="138" b="133" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style1>
<style2>
<FORE>
<colour r="136" g="138" b="133" />
</FORE>
<NAME>
<str>
<![CDATA[Comment (normal)]]>
</str>
</NAME>
</style2>
<style3>
<FORE>
<colour r="52" g="101" b="164" />
</FORE>
<BOLD bool="0" />
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style3>
<style4>
<FORE>
<colour r="52" g="101" b="164" />
</FORE>
<BOLD bool="0" />
<NAME>
<str>
<![CDATA[Comment (documentation)]]>
</str>
</NAME>
</style4>
<style6>
<FORE>
<colour r="164" g="0" b="0" />
</FORE>
<NAME>
<str>
<![CDATA[Comment keyword error (documentation)]]>
</str>
</NAME>
</style6>
<style7>
<FORE>
<colour r="173" g="127" b="168" />
</FORE>
<BACK>
<colour r="46" g="52" b="54" />
</BACK>
<BOLD bool="1" />
<NAME>
<str>
<![CDATA[Number]]>
</str>
</NAME>
</style7>
<style8>
<FORE>
<colour r="233" g="185" b="110" />
</FORE>
<NAME>
<str>
<![CDATA[Keyword]]>
</str>
</NAME>
</style8>
<style9>
<FORE>
<colour r="78" g="154" b="6" />
</FORE>
<NAME>
<str>
<![CDATA[User keyword]]>
</str>
</NAME>
</style9>
<style10>
<FORE>
<colour r="185" g="49" b="0" />
</FORE>
<BACK>
<colour r="30" g="3" b="0" />
</BACK>
<NAME>
<str>
<![CDATA[String]]>
</str>
</NAME>
</style10>
<style11>
<FORE>
<colour r="185" g="49" b="0" />
</FORE>
<BACK>
<colour r="30" g="3" b="0" />
</BACK>
<NAME>
<str>
<![CDATA[String]]>
</str>
</NAME>
</style11>
<style12>
<FORE>
<colour r="245" g="121" b="0" />
</FORE>
<NAME>
<str>
<![CDATA[Character]]>
</str>
</NAME>
</style12>
<style13>
<FORE>
<colour r="211" g="215" b="207" />
</FORE>
<NAME>
<str>
<![CDATA[UUID]]>
</str>
</NAME>
</style13>
<style14>
<FORE>
<colour r="78" g="154" b="6" />
</FORE>
<NAME>
<str>
<![CDATA[Preprocessor]]>
</str>
</NAME>
</style14>
<style15>
<FORE>
<colour r="233" g="185" b="110" />
</FORE>
<NAME>
<str>
<![CDATA[Operator]]>
</str>
</NAME>
</style15>
<style16>
<BACK>
<colour r="23" g="32" b="24" />
</BACK>
<NAME>
<str>
<![CDATA[Selection]]>
</str>
</NAME>
</style16>
<style17>
<BACK>
<colour r="24" g="33" b="33" />
</BACK>
<NAME>
<str>
<![CDATA[Active line]]>
</str>
</NAME>
</style17>
<style18>
<BACK>
<colour r="114" g="159" b="207" />
</BACK>
<NAME>
<str>
<![CDATA[Matching brace highlight]]>
</str>
</NAME>
</style18>
<style19>
<FORE>
<colour r="238" g="238" b="236" />
</FORE>
<BACK>
<colour r="164" g="0" b="0" />
</BACK>
<NAME>
<str>
<![CDATA[No matching brace highlight]]>
</str>
</NAME>
</style19>
<NAME>
<str>
<![CDATA[C/C++]]>
</str>
</NAME>
<editor>
<keywords />
</editor>
</cc>
</oblivion>
</colour_sets>

How to Install the Theme?

Step 0: Make sure that Code::Blocks is closed along with all its associated files.
Step 1: Navigate to: ~/.codeblocks/
Step 2: Locate the Default configuration file: default.conf
Step 3: Edit the file using your favorite editor.
Step 4: Locate the <colour_sets> </colour_sets> tags.
Step 5: Copy the above code to replace those tags.
Step 6: Save the file.

Note: I have attached my default.conf file for further assistance.

Kind Regards,

Offline Phenom

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: The Best Customized Oblivion Color Theme for Code::Blocks
« Reply #1 on: November 16, 2010, 03:05:24 pm »
Nice theme, although it does not look good on Windows XP(where almost everything is white).