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"><<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>></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've found that are useful) (and none on a per-project level) and certainly can'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'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>
> Perhaps we can agree on an Eclipse autoformat style to use, just to make things slightly easier to make consistent?<br>
><br>
> On Thu, Apr 15, 2010 at 12:55 PM, Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>> wrote:<br>
><br>
> On 15 Apr 2010, at 17:49, Dan Allen wrote:<br>
><br>
> > On Thu, Apr 15, 2010 at 12:38 PM, Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>> wrote:<br>
> > The easiest option I know is just to use the Eclipse XML editor and never use the autoformat feature.<br>
> ><br>
> > 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>
><br>
> yes.<br>
><br>
> > and then space, space, space to get it to line up again?<br>
><br>
> no, it can do that automatically :-)<br>
><br>
> > I'm trying to find a way where you don't have to think. You can just type and it only formats what is necessary. If that's how it works, then I need to give it another chance.<br>
><br>
> I never found a plugin for eclipse to do this. I don't want to move outside my IDE to edit these files.<br>
> _______________________________________________<br>
> seam-dev mailing list<br>
> <a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
><br>
><br>
><br>
> --<br>
> Lincoln Baxter, III<br>
> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
> "Keep it Simple"<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>"Keep it Simple"<br>