Custom language support - Disable code annotations

Answered

In order to get colorized underline beneath some PSI elements, I use the Annotator as described in custom language support and also under Syntax Highlighting and Error Highlighting:

However, I'd like also to give the user the option to disable plugin's annotations. For example, disabling inspections can be done easily as described here.

What is my best option to allow disabling code annotations?

Thanks.

0
1 comment

There is no UI for configuring Annotators, so you'll have to e.g. create custom Settings page https://jetbrains.org/intellij/sdk/docs/basics/settings.html and/or add Quickfix in your highlighting to disable this highlighting directly from editor.

0

Please sign in to leave a comment.