My Weekly NetBeans Tip (2): Comment/Uncomment XML Tags

When you select that hint, you will see this:
-
Go to Tools | Options | Editor | Code templates.
- Select XML in the Language
-
Click New, enter "un" as the abbreviation, then enter the following code as the expanded text:
<!--
${selection line}${cursor}--> - In the Description tab, enter "Uncomment", and click OK.
Now it will work like shown above. The tip is based on my previous tip. Hope you like it!
| Attachment | Size |
|---|---|
| surround-with-1.png | 27.3 KB |
| surround-with-2.png | 14.04 KB |
- Login or register to post comments
- 393 reads
- Flag as offensive
- Email this Story
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)







Comments
Varun Nischal replied on Thu, 2008/06/26 - 2:18pm
My name is Varun Nischal and I'm the NetBeans Community Docs Contribution Coordinator. Your Dzone entries would make fantastic Tips and Tricks for our Community Docs wiki (http://wiki.netbeans.org/CommunityDocs).
If you aren't a Sun Employee, Would you be willing to contribute it? If you need any help or have any questions, please contact me at nvarun@netbeans.org
I look forward to hearing from you.
Thanks,
Varun Nischal
http://nb-community-docs.blogspot.com/
--
"You must do the things you think you cannot do."