Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Mariius on June 09, 2012, 01:47:59 pm

Title: Dark code::blocks background?
Post by: Mariius on June 09, 2012, 01:47:59 pm
Google was useless for this question. I can't find normal answer on how to make your code::blocks compiler background darker, for ex: https://sites.google.com/site/svlasovs/home/codeblocks_dark.png. As i understand, there are "theme" codes for this compiler, however, I did not found them. I would be very grateful if you would share some with me :)
Thanks.
Title: Re: Dark code::blocks background?
Post by: oBFusCATed on June 09, 2012, 02:18:25 pm
Hm, are you talking about the editor?
Title: Re: Dark code::blocks background?
Post by: Mariius on June 09, 2012, 02:40:30 pm
Hm, are you talking about the editor?
Yes
Title: Re: Dark code::blocks background?
Post by: Alpha on June 09, 2012, 02:43:48 pm
Swap your lexer_cpp.xml with the attached one.
Title: Re: Dark code::blocks background?
Post by: zabzonk on June 09, 2012, 02:48:20 pm
Settings|Editor...|Syntax Highlighting. You will also want to change the caret colour in Margins & Caret.
Title: Re: Dark code::blocks background?
Post by: Mariius on June 09, 2012, 10:46:55 pm
Swap your lexer_cpp.xml with the attached one.

Hmm. I swaped it, and code blocks did not change at all.
Title: Re: Dark code::blocks background?
Post by: Alpha on June 09, 2012, 11:11:58 pm
I assume you removed the .txt file extension before swapping, correct?
Title: Re: Dark code::blocks background?
Post by: Mariius on June 11, 2012, 11:41:23 am
Yes, I did :)
Title: Re: Dark code::blocks background?
Post by: Alpha on June 11, 2012, 11:17:36 pm
Try: Settings->Editor...->Syntax highlighting Colour theme: "default"; Syntax highlighting for: "C/C++"; "Reset defaults" (button).
Title: Re: Dark code::blocks background?
Post by: Panarchy on November 10, 2012, 01:56:31 pm
Swap your lexer_cpp.xml with the attached one.

There must be better dark lexers' available:

(http://i.imgur.com/4MARH.png)
Title: Re: Dark code::blocks background?
Post by: Alpha on November 11, 2012, 05:06:17 am
There must be better dark lexers' available:
I think everyone's idea of "better" is different.  There are more user posted (http://forums.codeblocks.org/index.php/topic,16668.0.html) lexers, if you would like to try them (search the forums; this is just the most recent of many).
Alternatively, if you know exactly what colors you want, each lexer is completely customizable via the syntax highlighting settings.