This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Eclipse: xml file without xml ext

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me if it is possible to tell Eclipse to recognize a non XML extension to be an XML file? I supposed that is more of a plugin thing. I am using Eclipse 3.1 and the WTP plugin for web development. Any ideas?
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK, the only way to do this is by associating each XML-type extension with your XML editor, in preferences: general -> editors -> file associations. This is what I've done with .xsd, .xslt, .wsdl, ...

I'm not aware of a way of telling Eclipse to look at file content and choose an editor based on it...that would be a nifty feature though!



-Tim
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Tim West:
AFAIK, the only way to do this is by associating each XML-type extension with your XML editor, in preferences: general -> editors -> file associations. This is what I've done with .xsd, .xslt, .wsdl, ...

I'm not aware of a way of telling Eclipse to look at file content and choose an editor based on it...that would be a nifty feature though!



-Tim



That worked good enough for me. Thanks.
 
Saloon Keeper
Posts: 22490
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse 3.1 added the ability to snoop content. Prior to that release, extensions were the only way.

Usually extensions are a Good Thing, since they provide a hint as to the file's purpose, but one of the plugins available for Eclipse is a Shell Script editor, and people didn't like having to end their shell programs with ".sh". Unix executable programs don't normally have filename extensions.
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic