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

Commenting out a region?

Expand Messages
  • Jeremy Cowgar
    Can I comment out a region? Jeremy
    Message 1 of 3 , Nov 28, 2006
    • 0 Attachment
      Can I comment out a region?

      Jeremy
    • Jon Green
      ... No - out of the box. Yes - if you wrote a macro to do it.
      Message 2 of 3 , Nov 29, 2006
      • 0 Attachment
        Jeremy Cowgar wrote:
        > Can I comment out a region?
        No - out of the box.
        Yes - if you wrote a macro to do it.
      • 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 3 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.