I am developing a plugin where I register a new xml extension, as shown below:
public class NsHtmlExtension extends HtmlXmlExtension { @Override public boolean isAvailable(PsiFile file) { return super.isAvailable(file) && NsFacade.getInstance().isNsProject(file.getProject()); } @Nullable @Override public String[][] getNamespacesFromDocument(XmlDocument xmlDocument, boolean b) { String[][] strings = {{"", NsResourceProvider.NS_DTD_URI}}; return strings; } }
In html files now I have autocomplete tags using xsd descriptors.
I want to add some additional attributes, but it seems that tags using xsd descriptors do not request additional attributes from attribute providers.
How to add additional attributes for these extensions? for example, if the Label tag has the attribute "width", I want to add "i: width", "a: width", "i.width" .. "a.width" ...
early.
source share