Language API: custom XML file formats

I remember talk of special support within IDEA for special XML file
format support via Language API plugins. I'd like to provide completion
and annotation of XML files of a certain type. (However, their extension
is .xml.) Must I wait for the special support, or is there a way to do
it with the Language API?

2 comments
Comment actions Permalink

Hello Keith,

KL> I remember talk of special support within IDEA for special XML file
KL> format support via Language API plugins. I'd like to provide
KL> completion and annotation of XML files of a certain type. (However,
KL> their extension is .xml.) Must I wait for the special support, or is
KL> there a way to do it with the Language API?

No, the Irida Language API does not allow you to implement that - the file
type is strictly tied to the file extension. In a future version of IDEA
it will likely be possible to tie custom support to XML namespaces.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Dmitry Jemerov (JetBrains) wrote:

Hello Keith,

KL> I remember talk of special support within IDEA for special XML file
KL> format support via Language API plugins. I'd like to provide
KL> completion and annotation of XML files of a certain type. (However,
KL> their extension is .xml.) Must I wait for the special support, or is
KL> there a way to do it with the Language API?

No, the Irida Language API does not allow you to implement that - the
file type is strictly tied to the file extension. In a future version of
IDEA it will likely be possible to tie custom support to XML namespaces.


What if the file extension is custom? How would I implement a custom XML
file language?

0

Please sign in to leave a comment.