Annoying XML Comments: NetBeans IDE Plugin
Commenting XML ... you have to write "<!--" and then "-->" ,if you have to write some large doc, and want it be well commented, you'll get really bored by typing four chars just to start comment block.
I was little frustrated by the fact there is no tool(well there is as a hint but i like key shortcuts) in my beloved NetBeans IDE to comment/uncomment whole block of text (like the Java editor has), so i wrote it down.
EDIT: It's useless "Ctrl-/" does the same for XML. See official short-cut list, its hidden in "Coding in Java" but works for many other file types.
Download it for free right here:http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=35608
It's simple, select text which you want to comment, right click for context menu and select "XML Comment" like the figure below shows.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Daniel Kec replied on Mon, 2011/01/10 - 11:00am
Wouter van Reeven replied on Tue, 2011/01/11 - 3:51am
Hi,
Good stuff!
In e.g. XHTML files you can comment out lines by selecting them and pressing CTRL-/. In what files doesn't this work so you wrote the plugin?
Wouter van Reeven
Daniel Kec replied on Tue, 2011/01/11 - 4:35am
in response to:
Wouter van Reeven
Jonathan Spooner replied on Tue, 2011/01/11 - 1:27pm
Peter ___ replied on Tue, 2011/01/11 - 6:28pm
+1 Jonathan Spooner
Bikes Direct replied on Thu, 2011/08/11 - 11:56am
Jessie Mear replied on Wed, 2011/09/07 - 8:04am
Matt Coleman replied on Fri, 2011/11/18 - 12:31am
in response to:
Jessie Mear
I agree with you
buffalo website design
Ryan Fitz replied on Fri, 2011/11/18 - 1:02am
in response to:
Jonathan Spooner
it sure does do the same thing
amish rifle shirts