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.

Bug 201950

Summary: [suggestion] Adding tag's info into HTML comments on auto-closing.
Product: web Reporter: TrebleSnake
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:

Description TrebleSnake 2011-09-11 22:20:32 UTC
Hi, what do you think about such a feature in HTML editor: IDE puts tag's id and classes into HTML comment behind the tag on its auto-closing?

Example:
I have an opening tag: <div id="myDiv" class="myClass1 myClass2">.
For now NetBeans can automatically add only closing tag "</div>", but, IMHO, it would be great to make it "</div><!-- #myDiv.myClass1.myClass2 -->".

Could be very handy for complex HTML code.
Comment 1 cromat 2012-03-07 17:04:17 UTC
I would like to see the closing tag for Maven / XML/ HTML etc in general the commend thing is not necessary.  I think if that is configurable for others then that would be the best solution.
Comment 2 Marek Fukala 2012-10-15 13:18:10 UTC
that's nice enhancement