8

In my previous (and first) foray into Eclipse, I inherited another Developer's workstation and setup. Now, I'm trying to setup a new Eclipse instance from scratch, and, in turn, am scratching my head.

How do I go about getting XML-style syntax coloring for files that do not end in .xml (specifically vxml files, in this case)?

Thanks!
IVR Avenger

IVR Avenger
  • 15,090
  • 13
  • 46
  • 57

1 Answers1

9

You can define which extensions are mapped to which content-types ; this should help Eclipse do what you want.

For that, go to : Window > Preferences > General > Content-types

Then find the "XML" content-type on the right on the screen.
When you click on it, there will be a list of extensions at the bottom of the dialog box.

Click the "Add..." button, and define your extension here in the popup : *.vml

Click OK to close the preferences window...

... And .vml files should now be considered as XML ;-)

Rich Seller
  • 83,208
  • 23
  • 172
  • 177
Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663