News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Feature request: Enhance syntax highlighting regarding defines

Started by BlackRose, January 27, 2010, 08:05:16 AM

Previous topic - Next topic

BlackRose

Hi!
Is possible to have syntax highlighting enhanced to show blocks of code under undefined preprocesor condition as remarks?
For example

#define _CONDITION1

#if defined (_CONDITION1)
  //here is code highlighted as usual
#else
  //here is code shown in color of remark
#endif


BlackRose

MortenMacFly

Quote from: BlackRose on January 27, 2010, 08:05:16 AM
Is possible to have syntax highlighting enhanced to show blocks of code under undefined preprocesor condition as remarks?
This is currently not supported, so: No.
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]