Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: XML syntax coloring for non-XML files

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

like image 513
IVR Avenger Avatar asked Aug 25 '09 18:08

IVR Avenger


1 Answers

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 ;-)

like image 111
Pascal MARTIN Avatar answered Nov 13 '22 20:11

Pascal MARTIN