Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » xml editor formatting behaviour change
xml editor formatting behaviour change [message #181940] Fri, 27 October 2006 07:07 Go to next message
Eclipse UserFriend
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 07:44 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
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: Tue Mar 19 04:00:01 GMT 2024

Powered by FUDForum. Page generated in 0.02694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top