User forums > Help

About colors and doxygene when code between #ifdef..#endif

(1/1)

Crepuscule:
Hi everybody!

    I am an ardent user of Code::Blocks since few years. I always used to official version 10.05 version but last week I passed directly to the 8438 version. In this version I discovered the Doxygene plugin that is excellent.
I use the langage C only for embedded software.

But I have a problem about source code between:


--- Code: ---#ifdef XXXX
...
#endif

--- End code ---

All the parts of source code between "#ifdef" and "#endif" which are not defined by a "#define" line are in grey very light.

Concerning my work, I have a lot of preprocessor directives which are not defined by a "#define" line but directly from the compilator. I don't want to change that (don't ask me why... it is a long and complicated history).
Consequently, when I open my source code with code::blocks I see a lot of code in grey very light... I can generate doxygene documentation related to these parts of code and I can't see my functions between "#ifdef" ... "#endif" in the list of function at the top of code::blocks when I am in a specific file.

Do you know if there is a checkbox to enable all preprocessing code?

Best regards,


Crepuscule

MortenMacFly:
Settings -> Editor -> Tab "C/C++ settings" -> Disable the checkbox "Interprete #if ..."

Crepuscule:
Thank you very much!!
It is exactly what I looked for!

Best regards,


Crepuscule

gonboy:
But If you set "Project -> Compiler Settings -> defines " in "Build Option" ,
that's won't to interpret the code by different colors

Navigation

[0] Message Index

Go to full version