XData MimeType anything other then just xml
XData blocks in Caché classes has a MimeType property, and dcoumentation says
MimeType — The MIME type (more formally, the internet media type) of the contents of the XData block. The default is text/xml
But unfortunately I can't set any other values, such as text/html or application/javascript, because XData still expect only XML.
So, question is, for what reasons this property was appeared?
It would be very usefull to set in this property anything other then text/xml, and Studio would highlighted it as developer expected.
Good question, it would be nice to know the list of supported (i.e. properly syntax highlighted) mimetypes.
I know that application/json is [almost] properly handled (with the exception of open brace). But what else? Even text/plain is marked invalid.
I just got here via search. These days (but perhaps not in 2016) we support application/json and application/yaml. text/plain and other types (haven't fully enumerated them) actually work in VSCode, but not Studio. (Good reminder to not use Studio!)
See: https://docs.intersystems.com/iris20223/csp/docbook/DocBook.UI.Page.cls?...
Here's a full list of all the MimeTypes that will be correctly colored in VS Code (requires InterSystems Langauge Server version 2.1.1):
An XData bock with no MimeType will still be colored as XML.