mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
syntax_highlighting_and_error_highlighting.md: DumbAware Annotator
This commit is contained in:
parent
cb13c02526
commit
3fa3ba3685
@ -17,3 +17,6 @@ Nested Index Access
|
||||
|
||||
File Type Index Topic
|
||||
: [`FileTypeIndex.IndexChangeListener`](%gh-ic-master%/platform/indexing-api/src/com/intellij/psi/search/FileTypeIndex.java) allows monitoring addition/removal of files by `FileType`.
|
||||
|
||||
Run Annotator During Indexing
|
||||
: [Annotators](syntax_highlighting_and_error_highlighting.md#annotator) can implement `DumbAware` to run during indexing (e.g., providing additional syntax highlighting).
|
||||
|
@ -81,6 +81,8 @@ Annotators can analyze not only the syntax, but also the semantics using PSI, an
|
||||
The annotator can also provide quick fixes to problems it detects.
|
||||
When the file is changed, the annotator is called incrementally to process only changed elements in the PSI tree.
|
||||
|
||||
Annotators not requiring information from [indexes](indexing_and_psi_stubs.md) may implement [`DumbAware`](%gh-ic%/platform/core-api/src/com/intellij/openapi/project/DumbAware.java) to work during indexing (e.g., for additional [syntax highlighting](#syntax)). (2023.1+)
|
||||
|
||||
> See also [Code Inspections](code_inspections_and_intentions.md) which offer a more fine-grained control and some additional features.
|
||||
>
|
||||
{style="note"}
|
||||
@ -113,7 +115,7 @@ Call `createWarningAnnotation()`/`createErrorAnnotation()` on the [`AnnotationHo
|
||||
|
||||
### Syntax
|
||||
|
||||
To apply additional syntax highlighting (2020.1 and later):
|
||||
To apply additional syntax highlighting:
|
||||
|
||||
<tabs group="platform-version">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user