XML language injection for a particular schema

This seems like an obvious feature, but I can't find documentation for it.

I want to annotate a text fragment as XML of a particular schema. I don't want to specify the schema in the XML fragment itself. Something like this:


Subsquently, IntelliJ would provide auto-completion and verification of the XML string as it's being typed. This would be handy for writing test or DSLs with embedded XML fragments written by hand.

Can this be done?

Please sign in to leave a comment.