[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Ident, not Format, in XML files

The flaw in your thinking is that it doesn't work.  :)

The first thing I tried was setting the line width in Preferences -> XML -> XML Files -> Editor. The problem is that the format command doesn't just listen to the line length; it insists on putting every new tag on its own line. So for example if I have:

   <property name="foo"><map/></property>

Which I really, really want to keep on one line, it changes that to:

   <property name="foo">
       <map/>
   </property>

Which I really, really do NOT want. All I want is for it to indent the damn line and leave tags where I put them.

Raul