Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 highlight #if 0 as comment
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Feb 24 2004 :  11:07:04 AM  Show Profile
would it be possible to have all of the code in a #if 0 block coloured as comments?

i often use:

#if 0
// sample code
#endif


to keep chunks of sample code on hand and available for reference. i also use:

#if 0
// normal mode
#else
// alternative, debug version
#endif


when debugging complex functions. i can switch between one block and the other by simply swapping the 0 for a 1 and back again. this is a lot faster and easier than using:

/**
// normal mode
**/
/**
// alternative, debug version
**/



so, having the inactive block coloured as comments would be wonderful

currently i do most of my programming in Vim under UNIX, and i have set this up in the Vim C syntax highlighting rules. however, there doesn't seem to be any way for mere mortals to defining custom syntax highlighting rules in VS .NET 2003

zen is the art of being at one with the two'ness

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Feb 24 2004 :  11:48:15 AM  Show Profile
This is a common request. See threads 80, 314 & 743, for example.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Feb 25 2004 :  07:16:29 AM  Show Profile
ah, thanks for that. there is quite a bit of history here to catch up on

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000