XML-like file type - can I make it use the XML editor?
In our Flex/Actionscript projects, we have XML files with a specific schema that are used for localization resources. The files are called (for example) foo.en_US.xml.
In order to use the File Watchers plugin to trigger automatic codegen of Resource classes when they change, we have created a custom file type called "Our Company Localization Resources" whose registered pattern is *.en_US.xml and then set up a Watcher to watch that file type and run our codegen script when any file of that type changes.
That works really nicely, except that since those files are seen as "Our Company Localization Resources" type instead of XML type, they get the plain text editor instead of the XML editor. That makes editing them kind of a pain in the neck.
Is there a way to tell IntelliJ IDEA to use the XML editor for this custom file type?
Please sign in to leave a comment.
You should use the default XML file type and define File Watcher with a custom Scope that will trigger only on en_US.xml files instead of all .xml files.
Thanks very much - this did the trick!
Rob