News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

C::B editor text alteration depending on preproc. definition command

Started by littlegene, February 24, 2012, 12:47:29 PM

Previous topic - Next topic

littlegene

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

MortenMacFly

Quote from: littlegene on February 24, 2012, 12:47:29 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

littlegene

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))