0
votes

I'm programming on Eclipse Enviroment and I'm working with a special files with a special extension. They are a cutom XML files in the company where I'm working. Eclipse doesm't recognize this types of files and they are show like they was plain text. How can I open that files with the XML style?

Thanks!

3

3 Answers

3
votes

Follow the below Steps

  1. Right Click on the XML File in the Eclipse
  2. You Should See 'Open With' option and click that
  3. Then select 'Xml Editor'
  4. 'XMl Editor' opens in 2 modes (1) Source (2) Design
  5. Look at the Left bottom of the for the Source | Design buttons
  6. Click Source and there you are!

Most of the time it Opens in Design Mode where you can't edit

1
votes

For a single file you can right click on the file and select 'Open With > XML Editor'. Eclipse remembers which editor you use so you only have to do this once. If 'XML Editor' is not in the list, select 'Other...' and select it from the list displayed in the dialog.

You can also set up a file association by opening the Preferences and going to 'General > Editors > File associations. Here you can add your file extension and select the editor to use.

-1
votes

Right click the xml file in Eclipse -> open with-> text editor. Then you can see the XML style.