Problems Highlighting in custom EditorTextField

Answered

Hi, I have a plugin with my own new language, I created and registered annotator for it, and it works fine in editors managed by the FileEditorManager.

But when I have my own EditorTextField, the syntax highlighting works, the annotator works as well, because I can see the produced gutter icons. But, the highlighting of the problems on the right side by the vertical scroller (the inspections) are not visible/available. How do I turn them ON?

 

Thanks,

Milo

0
2 comments

Hi Milo,

Please try:

editorTextField.getEditor().getMarkupModel().setErrorStripeVisible(true);

 

0

Hi Karol,

great, thx, that helped, you just need to cast the MarkupModel to EditorMarkupModel:

EditorMarkupModel emm = (EditorMarkupModel)editor.getMarkupModel();
emm.setErrorStripeVisible(true);
0

Please sign in to leave a comment.