XML Include file type

I have a problem since I often use XML entities and include them in XML files. The problem is that the files that I include are not always valid XML so if I give them a .xml extension, IDEA complains. Fair enough I think - I will create my own File Type with a different extension (e.g. .xmlinclude).

I had a read of the Help and it seems that it is quite easy to create this File Type and I did just that. However, I no longer have the benefits that I would otherwise have if I were editing a XML file e.g. autocompletion, tag completion, etc.

The question is, can I have the best of all world? e.g. the benefits of editing an XML file on a file that does not have an XML file extension, because it is not quite valid XML?

Please sign in to leave a comment.