Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Add marker to code line
Permanently deleted user
Created
I have developed a plugin to find errors on source code. i want to add marker bar to the line which contains error. like analysis status. any one knows how do it.
OK, I see. You need to create a highlighter to do that:
editor.getMarkupModel().addRangeHighlighter(...) or editor.getMarkupModel().addLineHighlighter(...)
The highlighter should either be created with TextAttributes for which error stripe color is set, or you can set error stripe color directly on created highlighter:
Could you please elaborate what do you mean by a marker bar?
There is a marker bar in right side of the editor. I want to add marker on that. for given code line.
in above image markers shown in yellow color. i want to add my makers as well
OK, I see. You need to create a highlighter to do that:
editor.getMarkupModel().addRangeHighlighter(...) or editor.getMarkupModel().addLineHighlighter(...)
The highlighter should either be created with TextAttributes for which error stripe color is set, or you can set error stripe color directly on created highlighter:
highlighter.setErrorStripeMarkColor(color)
Its working. Thank you.