Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » xml editor formatting behaviour change
xml editor formatting behaviour change [message #181940] Fri, 27 October 2006 03:07 Go to next message
Eclipse User
Originally posted by: nandan.shinde.cognizant.com

Hello,

Following is my requirement:

The xml files are having groovy script embedded in.

When i select the option 'format---->document' on the Web tools xml
editor, the embedded groovy code get distorted. I want the xml editor to
ignore the
formating of the code embedded in the xml file.

Please let me know how to configure this in Web tools xml editor.

Thanks,

Nandan
Re: xml editor formatting behaviour change [message #182122 is a reply to message #181940] Fri, 03 November 2006 02:44 Go to previous message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
>
> The xml files are having groovy script embedded in.
>
> When i select the option 'format---->document' on the Web tools xml
> editor, the embedded groovy code get distorted. I want the xml editor to
> ignore the
> formating of the code embedded in the xml file.

Putting the groovy script in a CDATA section might do what you want.
And that is usually required anyway for groovy script, since it can
sometimes have things that sort of look like tags (e.g. in "if (a<b))",
the "<b"
would be parsed as the beginning of a tag).
Previous Topic:Want to learn more about WTP?
Next Topic:WSGen/WSImport plugin
Goto Forum:
  


Current Time: Fri Aug 01 07:54:38 EDT 2014

Powered by FUDForum. Page generated in 0.03849 seconds