How to programmatically implement a contrasting UI style similar to code diff in ide?
已回答
Just like the effect of the above picture, I hope to be able to achieve this effect through programming in the ide editor. Is there any relevant source code in the SDK for reference?
请先登录再写评论。
I haven't tested it but Editor.getMarkupModel().addRangeHighlighter() might be what you are looking for.
Can get editor object with