Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » XML editor not working on non .xml files
XML editor not working on non .xml files [message #165506] Fri, 31 March 2006 05:08 Go to next message
Eclipse UserFriend
Originally posted by: fbondioli.autentiweb.com

Hi everybody,

I'm using WTP 0.7.0 with eclipse 3.1

I've noticed that if I rename an xml file from myfile.xml to
myfile.somethingelse, then all the functionalities of the xml editor are
gone (syntax highlight, code assist, etc.. of course I've forced it to
be opened with xml editor registering this extension in preferences)

Is this a bug?If I upgrade to a more recent WTP (1.0) the behavior will
be the same?

regards

FB
Re: XML editor not working on non .xml files [message #165513 is a reply to message #165506] Fri, 31 March 2006 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Fabio B. wrote:
> I'm using WTP 0.7.0 with eclipse 3.1
>
> I've noticed that if I rename an xml file from myfile.xml to
> myfile.somethingelse, then all the functionalities of the xml editor are
> gone (syntax highlight, code assist, etc.. of course I've forced it to
> be opened with xml editor registering this extension in preferences)
>
> Is this a bug?If I upgrade to a more recent WTP (1.0) the behavior will
> be the same?

This is a common enough problem that it has warranted an entry in
our FAQ (http://www.eclipse.org/webtools/faq/main.html#xml_1). The
quick and dirty answer is that you also need to tell Eclipse that
that filename extension is an XML file using the Content Types
preference page (it should be right next to the File Associations
page). In newer versions of WTP, the XML editor gives you better
guidance with how to proceed.

--
- Nitin
Re: XML editor not working on non .xml files [message #165693 is a reply to message #165513] Mon, 03 April 2006 06:34 Go to previous message
Eclipse UserFriend
Originally posted by: fbondioli.autentiweb.com

>
> This is a common enough problem that it has warranted an entry in our
> FAQ (http://www.eclipse.org/webtools/faq/main.html#xml_1). The quick
> and dirty answer is that you also need to tell Eclipse that that
> filename extension is an XML file using the Content Types preference
> page (it should be right next to the File Associations page). In newer
> versions of WTP, the XML editor gives you better guidance with how to
> proceed.
>

Thanks!
Previous Topic:Tomcat not stopping at breakpoints
Next Topic:How to configure WTP/Tomcat such at newly added resources(images) can be
Goto Forum:
  


Current Time: Sun Aug 31 04:40:37 EDT 2025

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

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

Back to the top