This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Support for block comments in the Ruby editor | ||
---|---|---|---|
Product: | ruby | Reporter: | rpatel <rpatel> |
Component: | Editing | Assignee: | issues@ruby <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
rpatel
2007-09-06 21:19:45 UTC
Try selecting the text and pressing Ctrl-/ (or click on the editor toolbar action named "Comment"). This will perform a sequence of same-line comments, just like in Java. The reason this is generally preferred over using block-comment delimiters (=begin/=end in Ruby, /* */ in Java) is that these don't nest, so if you need to comment out code which contains already commented out code, it doesn't work - the innermost "escape" causes the outer comment to be seen as regular code. What did you mean by "the fact that =begin/=end idiom doesn't seem to be working in NetBeans' Ruby editor for some reason." ? It does as far as I know; can you provide more details on what you're observing and what the wrong behavior is? Tor, Yes, Ctrl+/ worked. Noted your point about Ruby's limitation in handling block comments using =begin/=end. Thanks. Now, what I meant by my previous statement is this - I tried marking a code block with =begin and =end at relevant places and NetBeans doesn't seem to understand it. It gives "Syntax error, unexpected =". I am using M10. Yes, I will upgrade to Beta1 when time permits. Regards, Rima. |