I'm writing a plugin for an HTML/JS framework that...
# intellij-plugins
s
I'm writing a plugin for an HTML/JS framework that adds new attributes to existing elements (kinda like the Vue plugin does). I found that I can do most things with Web-Types, but was wondering if there's a way to specify that an attribute's value should be auto-completed as the value for a specific CSS property? Eg, an
x-color=""
attribute should get autocompletions solely for css colours (strings, rgb func, gradients, ...), whereas an
x-transition
should only show completions for css transitions, etc. Would be great if I could say that attribute X should be completed as if it were css property Y. I assume I can get that done using intellilang/language injections, but was wondering if this is doable with webtypes or the polysymbols API of the platform SDK? The docs also seem to mention an
inject-language
property, but I can't find that in the json schema. If this exists, can I pass
before-
and
after-
fragments here like we can do with Intellilang to achieve my goal? (I couldn't find an existing channel for web-types, if there's a better one to ask this in please let me know)