How to Highlight one line in EditorTextField Follow
Hi , Everyone
I am trying to handle some files (such as xml and json files ) with EditorTextField.
Sometimes , the content in editor is invalid , and I want to highlight the error line , but I can not find any methods and interfaces .
How Can I highlight the error line?:_|:_|:_|
Please sign in to leave a comment.
try annotator:
http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/annotator.html
I try to over write the public void paint(Graphics g) method in EditorTextField, and It works.
and Then I find a better way is use HighlightManager to highlight the error line . thx anyway
> .. It works
That's what matters. Well done.