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 43329 - Feature: format/indent xml tags
Summary: Feature: format/indent xml tags
Status: VERIFIED DUPLICATE of bug 22510
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 5 votes (vote)
Assignee: issues@xml
URL:
Keywords:
: 42869 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-17 02:15 UTC by Ben Hutchison
Modified: 2005-09-05 10:15 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.