Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Sidhartha on February 25, 2012, 02:31:20 pm

Title: Change colour of classes
Post by: Sidhartha on February 25, 2012, 02:31:20 pm
Hi All,

Just started using CodeBlocks for C++... have got my editor colour set up as I want them...
However, I'm surprised to see that classes don't appear in their own colour... they simply seem to be shown in the foreground colour...

Am I missing something? I think it's really helpful to highlight classes in a different colour.

Thanks
Title: Re: Change colour of classes
Post by: oBFusCATed on February 25, 2012, 02:35:59 pm
No, there is no semantic highlighting implemented for code::blocks. Sorry.
If you really need it you can step up to implement it (it is not that simple).
Title: Re: Change colour of classes
Post by: Sidhartha on February 25, 2012, 02:48:44 pm
Thanks for your quick reply.

Ok, fair enough. I'll live!

While I'm here, one more query... I am using a dark theme... dark grey background. Right now my cursor is black and I am seeing no 'active line highlight'... no matter what I set the colours of the 'active line' to be in the editor...

Again, am I missing something? I really need to see the active line clearly.

Many Thanks
Title: Re: Change colour of classes
Post by: Sidhartha on February 25, 2012, 09:46:10 pm
Anyone? Thanks
Title: Re: Change colour of classes
Post by: Jenna on February 25, 2012, 09:52:13 pm
"Settings -> Editor -> General settings -> [Editor settings -> ] Highlight line under caret" to highlight the actual line.
Whether you need the part in the brackets depends on your version of C::B .

"Settings -> Editor -> Margins and caret -> Caret -> Colour" to set the carets colour.

Not too hard to find I think.
Title: Re: Change colour of classes
Post by: Sidhartha on February 25, 2012, 10:11:48 pm
Thanks very much!