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.
There is possible comment and uncomment selected block of text in editor for java source. It will be nice if the xml editor would have the same feature. For example: <a> <b/> <c/> </a> will be commented as: <!--<a> --> <!-- <b/> --> <!-- <c/> --> <!--</a> -->
I would prefer the code to be commented out in following format: <!-- <a> <b/> <c/> </a> --> It is not common to comment html code in the way you proposed. What type of comment should be used in jsps? I propose the JSP one (<%-- xxx --%>). Opinions?
I agree with JSP comment <%-- --%>. Having comment on each line will allow you provide action 'uncomment'. However having the whole block commented I can't imagine how you will implement uncomment...
You are right. There is dificult to comment xml with existing comments. Example <a> <!-- <c> </c> --!> </a> Probably this issue is wontfix.
To Karel: One of the possible solution would be: <%-- ahoj Karle Zikmunde --%> User selects 'Karle' and perform uncomment => <%-- ahoj --%> Karle <%-- Zikmunde --%> But I am not against commenting each line of the code though it looks weird.
Since the lack of this functionality is really annoying, I'm raising the priority.
*** Issue 15330 has been marked as a duplicate of this issue. ***
FYI, comment for Petr Kuzel: >------- Additional comments from pkuzel Fri Sep 5 12:20:38 +0000 2003 ------- > >These are already implemented in the kit. Their names are prefixed by >xml-, i.e. xml-comment. They are not bound to standard shortcuts.
Reassigning to default owner of selected subcomponent. New owners are gladly welcomed.
There is actually two issues here... 1) New comment/uncomment feature for XML 2) New comment/uncomment feature for JSP/JSTL Tags I'm marking this older Issue as the duplicate, since the newer issue calls for icon inclusion in the toolbar. Thanks. *** This bug has been marked as a duplicate of bug 184938 ***