|
|
Re: XML editor autoformat [message #230168 is a reply to message #230154] |
Wed, 08 April 2009 14:50 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Have you tried adding the xml:space="preserve" attribute to those
elements where you want to keep the formatting that you have specified?
Dave
Mike W wrote:
> Dear all,
>
> I'm using eclipse's (version 3.4.2) xml editor to edit a configuration
> xml for my application. The configuration file is quite complex, so
> autoformat comes in handy.
> Some elements of my xml file contain script code. I want the
> autoformatter to leave those elements alone and NOT format them like
> regular text.
> Is there a way to achieve this? Any hint welcome.
> (I know that i can set the XML editor preferences under
> window->preferences, and that i can check `Preserve Whitespace in Tags
> with PCDATA content'. But that doesn't help me, probably because my xml
> is schema-based, and PCDATA is a DTD concept.)
>
> Thanks, Mike
>
>
>
|
|
|
Re: XML editor autoformat [message #230174 is a reply to message #230162] |
Wed, 08 April 2009 14:52 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Yes, there are several known bugs in the formatter. If you do a search
on "format" in the summary of the wst.xml component you'll find about 24
of them that have been opened.
We are aware of them, and hope to address them in the near future.
Dave
Mike W wrote:
> Strange, when i uncheck the `clear all blank lines' option, the XML
> formatter does respond to the `preserve whitespace in PCDATA tags'
> option... Could it be that the formatter is still slightly buggy?
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds