Author Topic: Inactive code colors not working properly  (Read 3165 times)

John5788

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Inactive code colors not working properly
« on: June 19, 2012, 10:41:56 PM »
Hello,

I am on SlickEdit 2011 (v16.0.3.0) and I am noticing an issue with #defines and inactive code.

Here is a sample of what I am seeing



The part I am curious about is how come the defines for DEFINE_FALSE and DEFINE_TRUE don't work as intended? I am only able to see inactive code if i explicitly use #if 0, #if 1, #if TRUE, #if FALSE. I am not seeing same results if using defined values.

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: Inactive code colors not working properly
« Reply #1 on: June 20, 2012, 12:20:12 AM »
Unfortunately, this is a known limitation of the editor. I would love it if SE supported color-coding based on the current status of #defines, but apparently the amount of overhead to do that is prohibitive.

Here is a link to a prior discussion on this topic: http://community.slickedit.com/index.php/topic,5375.msg22479.html#msg22479
« Last Edit: June 20, 2012, 12:31:43 AM by davehohl »

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
Re: Inactive code colors not working properly
« Reply #2 on: June 20, 2012, 12:51:05 AM »
Have a close look at this thread
http://community.slickedit.com/index.php/topic,8155.0.html

If you enter your #defines into the preprocessor list (tools -> options - search for preprocessor and select the c++ one), then your coloring will work.