This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, Don't know whether it is an issue or feature, the preprocess body between '#ifdef'/#if defined '#endif' is parsed as comment. You can see it paste the following codesnip into a *.c/h file: #ifdef TRUE #undef TRUE /* the line we are discussing */ #endif #if defined(__sun) #include <sys/file.h> /* Has definition of FASYNC */ /* the line we are discussing */ #endif ENV === Product Version = NetBeans IDE 7.2 RC1 (Build 201206272359) Operating System = Linux version 3.2.0-3-amd64 running on amd64 Java; VM; Vendor = 1.7.0_03 Runtime = OpenJDK 64-Bit Server VM 22.0-b10
Created attachment 122198 [details] IDE log
the screenshot
Created attachment 122199 [details] the screenshot
This is the feature. All "dead" preprocessor blocks are colored as "dead code". It allows to see which part of code is treated as compiler's preprocessor as skipped. Exact color can be configured in Tools->Options->Fonts&Colors. Choose C/C++/Header languages and modify "Inactive Preprocessor Block" color if needed
Sounds good, so I close it. Thnaks, Pprun