I am using Eclipse 3.0.1 (fresh install) with MyEclipse 3.8.2 (fresh install) on Windows XP with Sun’s JDK 1.4.2_3.
When I use the sample XML file below, select all the text, right click and select Format -> Document, the file formats but ignores my settings in Windows -> Preferences -> MyEclipse -> Editors -> Common Editor Preferences ->Display tab width. I have specified 2 and it uses 4.
Another problem is if I take the same sample XML file, right click on the filename is Package Explorer (using the MyEclipse Perspective), and select MyEclipse -> Format Document, only the first element after the root gets moved over, the formatting also ignores my Displayed tab width setting and what I see on my screen is for the formatted line is:
<testtesting>this is a test</testing>
When I place my cursor on that line, it corrects to:
<testing>this is a test</testing>
SAMPLE XML:
<?xml version=”1.0″ encoding=”UTF-8″?>
<foo>
<testing>this is a test</testing>
<test />
</foo>