Reference to class from xml
Hi guys, I have implemented a reference contributor that provides a reference from xml to Php class and it works well. But IDE highlights the whole string of an attribute value, for example Some\Long\Name\Of\Class - whole string will be highlighted.
Could you please point me out how I can highlight each part of FQN separately like it works for Java classes declared in xml
Please sign in to leave a comment.
I have a PsiReferenceProvider for Strings that returns references that extend
where MString is my PsiElement for strings. To highlight only a part of the string I simply use the constructor
The provided TextRange defines the range inside the PsiElement that should be used.
Thank you Patrick, works!