Code::Blocks Forums
User forums => Help => Topic started by: Crepuscule on October 22, 2012, 02:40:16 pm
-
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:
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
-
Settings -> Editor -> Tab "C/C++ settings" -> Disable the checkbox "Interprete #if ..."
-
Thank you very much!!
It is exactly what I looked for!
Best regards,
Crepuscule
-
But If you set "Project -> Compiler Settings -> defines " in "Build Option" ,
that's won't to interpret the code by different colors