Eclipse: coloring XML syntax for non-XML files

In my previous (and first) raid on Eclipse, I inherited another developer workstation and setup. Now I'm trying to set up a new instance of Eclipse from scratch, and, in turn, I'm scratching my head.

How do I get the XML syntax style for files that do not end with .xml (specifically vxml files in this case)?

Thanks!
IVR Avenger

+7
eclipse xml syntax-highlighting vxml
source share
1 answer

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

To do this, go to: Window> Settings> General> Content Types

Then find content like "XML" on the right of the screen.
When you click on it, a list of extensions appears at the bottom of the dialog box.

Click the "Add ..." button and specify the extension in the drop-down list: * .vml

Click "OK" to close the settings window ...

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

+9
source share

All Articles