How to highlight / change background color of the code in the editor?
Answered
When you use "find" functionality in the IDE, the text that you look for is highlighted / changes the background (for example, when you search for "cow", then all occurrences of the word "cow" in code will change the background color). How to highlight some code / change the background color using a plugin?
Please sign in to leave a comment.
Please explain your exact use case
The use case is as follows. My plugin generates some code and I would like to highlight the generated code so that the user can differentiate the code that existed there and the code that has been generated by the plugin.
Any suggestions?
If there's no good way to do that or if you don't have any suggestions, could you please confirm that you don't have any suggestions (so that I know that there are no suggestions)?
Sorry for delay. If this highlighting is "persistent" (always on), you could use Annotator https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html#annotator