Loading ...
Sorry, an error occurred while loading the content.

RE: [jasspa] Commenting out a region?

Expand Messages
  • Phillips, Steven
    In many languages (i.e. C) this is dangerous because the presence of any comment within the block will break the file, i.e. /* start region comment here...
    Message 1 of 3 , Nov 29, 2006
    • 0 Attachment
      In many languages (i.e. C) this is dangerous because the presence of any comment within the block will break the file, i.e.
       
      /* start region comment here...
      some code
      /* original comment */
      some more code
      end region comment */
       
      Therefore in C I would do the following instead:
       
      #if 0
      some code
      /* original comment */
      some more code
      #endif
       
      And perhaps this capability should be added to ME. but in the interim giving a numeric argument to comment-line will comment out the next 'n' lines, writing a macro based on that may be a good start depending on the target file format.
       
      Steve


      From: jasspa@yahoogroups.com [mailto:jasspa@yahoogroups.com] On Behalf Of Jeremy Cowgar
      Sent: Wednesday, November 29, 2006 12:13 AM
      To: jasspa@yahoogroups.com
      Subject: [jasspa] Commenting out a region?

      Can I comment out a region?

      Jeremy

    Your message has been successfully submitted and would be delivered to recipients shortly.