At 12:24 PM 6/19/02 -0500, Pic Dude wrote: >[PIC seems to be the best tag for this]... > >Is there any way to comment out a block of code in MPLAB, w/o >dropping a semi-colon on every single line? Could not find an >answer to this in the MPLAB users' guide. I use "ifdef" or "ifndef" with a label that I *know* is undefined (not used anywhere else) and describes the block of code you are commenting out: ; #define SomeLabelThatDescribesThisBlock ;un-comment this line to enable the block of code ifdef SomeLabelThatDescribesThisBlock code goes here ... more code endif You now have 2 choices: remove the ifdef and endif around the block or simply remove the semi-colon at the front of the #define line. I'm sure that there are other techniques but this is what I use. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads