Does JBoss tools have this same XML formatting problem? If so, maybe we could get them to invest a little time in enhancing it for us if we can enumerate the deficiencies?<br><br>--LB<br><br><div class="gmail_quote">On Fri, Apr 16, 2010 at 5:35 AM, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The trouble is the XML formatter in eclipse has very little customizability (spaces vs tabs, gutter are the only ones I&#39;ve found that are useful) (and none on a per-project level) and certainly can&#39;t be told NOT to put all elements on a new line. So if we use it, it ends up looking so nasty that we should just invest the time to make it look ok.<br>

<br>
There are some better XML editors out there for sure which *can* apply ok formatting (but never found a great one as Dan says).<br>
<br>
So, here&#39;s a challenge for readers: find a formatting template that will take a file which has been (lovingly) hand formatted, like <a href="https://svn.jboss.org/repos/weld/doc/trunk/reference/en-US/ri-spi.xml" target="_blank">https://svn.jboss.org/repos/weld/doc/trunk/reference/en-US/ri-spi.xml</a> and not screw it all up (there might be a couple of errors in there) :-)<br>

<div><div></div><div class="h5"><br>
On 16 Apr 2010, at 04:31, Lincoln Baxter, III wrote:<br>
<br>
&gt; Perhaps we can agree on an Eclipse autoformat style to use, just to make things slightly easier to make consistent?<br>
&gt;<br>
&gt; On Thu, Apr 15, 2010 at 12:55 PM, Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On 15 Apr 2010, at 17:49, Dan Allen wrote:<br>
&gt;<br>
&gt; &gt; On Thu, Apr 15, 2010 at 12:38 PM, Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt; &gt; The easiest option I know is just to use the Eclipse XML editor and never use the autoformat feature.<br>
&gt; &gt;<br>
&gt; &gt; Right, but if you turn off the autoformat feature, then who is responsible for the wrapping? Do you have to hit return when the sentence reaches the right margin line<br>
&gt;<br>
&gt; yes.<br>
&gt;<br>
&gt; &gt; and then space, space, space to get it to line up again?<br>
&gt;<br>
&gt; no, it can do that automatically :-)<br>
&gt;<br>
&gt; &gt; I&#39;m trying to find a way where you don&#39;t have to think. You can just type and it only formats what is necessary. If that&#39;s how it works, then I need to give it another chance.<br>
&gt;<br>
&gt; I never found a plugin for eclipse to do this. I don&#39;t want to move outside my IDE to edit these files.<br>
&gt; _______________________________________________<br>
&gt; seam-dev mailing list<br>
&gt; <a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Lincoln Baxter, III<br>
&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &quot;Keep it Simple&quot;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>