Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsxml editor formatting behaviour change
https://www.eclipse.org/forums/index.php/mv/msg/57333/181940/#msg_181940
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]]>2006-10-27T07:07:41-00:00Re: xml editor formatting behaviour change
https://www.eclipse.org/forums/index.php/mv/msg/57333/182122/#msg_182122
> 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).]]>David Williams2006-11-03T07:44:29-00:00