How can I implement identifier/reference highlighting in a custom language (Colors&Forms > General > Identifier under caret)?
This is based on a simple references search. For the highlighting to work, the element being referenced needs to implement either PsiNamedElement or PsiNameIdentifierOwner.
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
Thanks Dmitry, works great! Had some small problems at the beginning with the search scopes, as my files are not in local file system, but it turned out fine. Good stuff... Dan
Have a look at plugin BrowseWordAtCaret
it doesn't depend on language of opened file
Hello Dan,
This is based on a simple references search. For the highlighting to work,
the element being referenced needs to implement either PsiNamedElement or
PsiNameIdentifierOwner.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry, works great!
Had some small problems at the beginning with the search scopes, as my files are not in local file system, but it turned out fine. Good stuff...
Dan