News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Syntax highlighting in between #ifdef prepocessor statements

Started by secks, September 16, 2010, 08:57:38 PM

Previous topic - Next topic

secks

I just updated to svn 6595 - Sept 15 2010 11:04:41 - linux, from jenslody and now all code (C++) in between conditional proprocessor commands' syntax highlight is gone .. all code is black .. does anyone know of a setting to disable that?  It's quite annoying and is new to my build .. I can't find any options in settings anywhere about it ..

Example

//this code has normal highlighting
int a;
a = 1;
if(a == 1) {
  #ifdef FAKEDEFINE
    //this code is all black
    cout << "WHY DONT I HAVE COLOR!!!???" << endl;
#endif
//back to normal color
  cout << "I have color here though :)" << endl;
}

killerbot

I have noticed this too an hour ago. Could this be related to the wxscintilla upgrade ?

MortenMacFly

Quote from: killerbot on September 16, 2010, 09:29:45 PM
I have noticed this too an hour ago. Could this be related to the wxscintilla upgrade ?
Yes! That's one of the new features: Scointilla scans the files for #defines and "greys" what's not relevant.
However, probably we should make this an option.
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]

secks

Quote from: MortenMacFly on September 16, 2010, 10:03:34 PM
Yes! That's one of the new features: Scointilla scans the files for #defines and "greys" what's not relevant.
However, probably we should make this an option.
It's actually greying out code that will be included from a preprocessor define though .. An option would definitely be nice .. If I had free time I'd look into it but unfortunately I don't at the moment :( ..