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:||Feature: format/indent xml tags|
|Product:||xml||Reporter:||Ben Hutchison <benhutchison>|
|Issue Type:||ENHANCEMENT||Exception Reporter:|
Description Ben Hutchison 2004-05-17 02:15:18 UTC
A action like "Reformat code" for Java files. Put the XML in a neatly indented format. Come on. This is an obvious basic and easily implemented feature for an XML editor, and Im dissappointed Netbeans cannot do this. The XML module has been around for several releases now. I honestly think it should have been done yesterday.
Comment 1 Petr Pisl 2004-07-12 15:47:13 UTC
*** Issue 42869 has been marked as a duplicate of this issue. ***
Comment 2 aldobrucale 2005-01-14 16:45:02 UTC
*** This issue has been marked as a duplicate of 22510 ***
Comment 3 alanobject 2005-01-14 18:52:39 UTC
There is a very important sub-feature of this feature that should be implemented. In addition to "Reformat XML on Whole Document" there should be a "Reformat XML in selected text." You often have segments of XML that look better if you DO NOT follow regular XML formatting rules. For example having a number of short tags on one line that are repeated, giving a tabular effect: <tr><td>1</td><td>Alpha</td></tr> <tr><td>2</td><td>Beta</td></tr> <tr><td>3</td><td>Gamma</td></tr> Etc. Editors such as Oxygen will reformat this so that each tag has its own line, much less desirable.
Comment 4 Jiri Kovalsky 2005-07-15 10:02:15 UTC
Verified as duplicate.