Annotator vs ExternalAnnotator

已回答

Hello,

 

I'm trying to understand:

1) What's the difference between Annotator and ExternalAnnotator?

2) What should I use to highlight some parts of code?

 

Thank you for help!

Aleks.

1

There are: 

  • Inspections - they are processing psi elements and may mark problems and suggests quickfixes. IDE provides configuration UI.
  • Annotator - may be used for things that should not be highlighted by inspections, e.g. some complex syntax highlighting, which can't be done on lexing phase.
  • External annotator - proxy for executing external tools for analysis. 

Last two has pretty nice JavaDoc. Don't hesitate to read.

0

HI Alexandr,

 

Thank you for response and this clarifications! It seems I need External annotator. Found this page documentation page

http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/annotator.html?search=annotator.

 

But can't find documentation about External annotator. Can you, please, provide the link?

 

Thank you for help!

 

 

0

See javadoc for com.intellij.lang.annotation.ExternalAnnotator

A lot of things documented with JavaDoc, not on the website. Website is more like getting started and architectural overview. It's definitely not a documentation.

0

Hi Alexandr,

 

Thank you for response! Very useful information. 

Best regards,

Aleks.

0

请先登录再写评论。