Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes Editing XML Files In Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Editing XML Files In Eclipse" Watch "Editing XML Files In Eclipse" New topic

Editing XML Files In Eclipse

Dave Hewy
Ranch Hand

Joined: Aug 21, 2003
Posts: 93
I've been looking at the XML "pretty display" plugins out there for Eclipse.
I had a look at XML Buddy, which is a nice addon, but there's already an XML editor in Eclipse, for editing build.xml Ant files.
This would do fine for me, I just want the source colour coded, but you only get the option to open with Ant Editor on this build.xml file.
Is there a way to enable this for other XML files?
I'm using Eclipse 3.0M5, moving to M6 soon.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
In the preferences, under Workbench/File Associations, add *.xml and associate the ant editor with it.
I am not sure how well the editor works on non-ant files, though. XML-Buddy works quite well for me.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Dave Hewy
Ranch Hand

Joined: Aug 21, 2003
Posts: 93
Oh yeah - why didn't I think of that !
I agree. Here's the link:
subject: Editing XML Files In Eclipse
Similar Threads
Boggled by Eclipse - help!
Leaving IntelliJ for Eclipse
edit the build.xml within Eclipse
Eclipse 2.1 is here!
Ant does not work in Eclipse