Author Topic: C::B editor text alteration depending on preproc. definition command  (Read 3848 times)

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: C::B editor text alteration depending on preproc. definition command
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: C::B editor text alteration depending on preproc. definition command
« Reply #2 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))