# \#highlighting

**URL:** https://platform.jetbrains.com/tag/highlighting/3.md

[Latest](https://platform.jetbrains.com/latest.md) · [Categories](https://platform.jetbrains.com/categories.md) · [Tags](https://platform.jetbrains.com/tags.md)

---

## [Proper rehighlighting with overlapping lexer states and matches \>= 5 letters](https://platform.jetbrains.com/t/proper-rehighlighting-with-overlapping-lexer-states-and-matches-5-letters/2940)

<div class="topic-metadata">

**Author:** [@Peter](https://platform.jetbrains.com/u/Peter)\
**Replies:** 3\
**Last updated:** [October 17, 2025, 10:56am UTC](https://platform.jetbrains.com/t/proper-rehighlighting-with-overlapping-lexer-states-and-matches-5-letters/2940 "2025-10-17T10:56:38Z")

</div>

I’m creating a plugin for a custom language, but I’ve stumbled across a very nasty highlighting problem. My simplified flex file looks like this: \<YYINITIAL\> { "G" …

---

## [Highlight effect when the cursor is over the reference](https://platform.jetbrains.com/t/highlight-effect-when-the-cursor-is-over-the-reference/2084)

<div class="topic-metadata">

**Author:** [@eltonsandre](https://platform.jetbrains.com/u/eltonsandre)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 7:36pm UTC](https://platform.jetbrains.com/t/highlight-effect-when-the-cursor-is-over-the-reference/2084 "2025-06-30T19:36:41Z")

</div>

How can I implement this highlighting effect when the cursor is over an element reference (string)? I have already implemented PsiReferenceContributor and FakeElement for the string part, this already works well, I ju…

---

## [Any one take care of the 'Cannot set highlighter to RangeHighlighter' issue?](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144)

<div class="topic-metadata">

**Author:** [@zhihao](https://platform.jetbrains.com/u/zhihao)\
**Replies:** 9\
**Last updated:** [March 31, 2025, 1:36pm UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144 "2025-03-31T13:36:01Z")

</div>

I reported this 2 months ago, event not fixed now: https://youtrack.jetbrains.com/issue/IJPL-176356/Cannot-set-highlighter-to-RangeHighlighter And if you do some search, you will find much more other reports: https://y…
