Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: littlegene on February 24, 2012, 12:47:29 pm

Title: C::B editor text alteration depending on preproc. definition command
Post by: littlegene on February 24, 2012, 12:47:29 pm
Sorry for this easy question.
But could C::B change C++ text style depending on #define(s) currently established?
If no, whether this ability appear soon
Title: Re: C::B editor text alteration depending on preproc. definition command
Post by: MortenMacFly on February 24, 2012, 01:00:51 pm
But could C::B change C++ text style depending on #define(s) currently established?
If no, whether this ability appear soon
Yes, but you'll need a nightly of C::B. Then you'll find the option in the editor preferences.
Title: Re: C::B editor text alteration depending on preproc. definition command
Post by: littlegene on February 24, 2012, 02:01:02 pm
Yea! I found it: "Interpret #if, #else, #endif to grey out inactive preprocessor-code"

After turning it on, three is the decoloration of all the language tokens, but the colour of the inactive code itself is the same as the active code. So no "grey out" at all (

Anyway thanks , ;o))