Remove Syntax Highlighting

Answered

Hi,

I am developing an IntelliJ IDEA language plugin.

In my plugin I highlight all keywords and then I try to remove the highlighting based on semantic analysis executed by an annotator.

Can you explain me how do I remove the styling (or basically set it to default)?

Best Regards

2 comments
Comment actions Permalink

Hi Alexander,

 

Try adding the following *before* the new annotation:

annotationHolder
.createInfoAnnotation(element, null)
.setEnforcedTextAttributes(TextAttributes.ERASE_MARKER);
1
Comment actions Permalink

Hi,

Awesome. Thank you!

Best Regards

0

Please sign in to leave a comment.