Hide or show in different color when symbol is not defined

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is code

#if defined myFilter
   /*
      code 1
   */
#else
   /*
      code 2
   */
#endif

How to show in different color or collapse or hidde this part of code

Quote:
/*
code 2
*/

if symbol myFilter is not defined?

Thank you!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR Studio doesn't support this out of the box, but you can download Naggy, an extension I wrote, that does what you want - it "lowlights" conditionally excluded preprocessor code among other things.

This is a thread about it in AVR Freaks, and you can download the extension from here

Regards

Senthil

 

blog | website

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

and you can download the extension from here

I'm astonished that I'm only the 29th person to download this? As it restores a key feature of VS2010 I'd have thought that everyone using AS5 would want it.

(hope this isn't an indication that there only 28 other people using AS5 ;-))