mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
some link-summary
This commit is contained in:
parent
772d77a9e9
commit
09bb4b7d8d
@ -1,4 +1,4 @@
|
|||||||
[//]: # (title: Documentation)
|
# Documentation
|
||||||
|
|
||||||
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||||
|
|
||||||
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
</tldr>
|
</tldr>
|
||||||
|
|
||||||
|
<link-summary>Documentation for code elements inside the editor.</link-summary>
|
||||||
|
|
||||||
Quick Documentation helps users by showing documentation, e.g., for classes, functions, or methods inside the editor.
|
Quick Documentation helps users by showing documentation, e.g., for classes, functions, or methods inside the editor.
|
||||||
Plugin authors implement
|
Plugin authors implement
|
||||||
[`DocumentationProvider`](%gh-ic%/platform/analysis-api/src/com/intellij/lang/documentation/DocumentationProvider.java)
|
[`DocumentationProvider`](%gh-ic%/platform/analysis-api/src/com/intellij/lang/documentation/DocumentationProvider.java)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[//]: # (title: Code Inspections)
|
# Code Inspections
|
||||||
|
|
||||||
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||||
|
|
||||||
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
</tldr>
|
</tldr>
|
||||||
|
|
||||||
|
<link-summary>Tutorial: implementing Inspections to highlight code in the editor.</link-summary>
|
||||||
|
|
||||||
The IntelliJ Platform provides tools designed for static code analysis called _code inspections_, which help the user maintain and clean up code without actually executing it.
|
The IntelliJ Platform provides tools designed for static code analysis called _code inspections_, which help the user maintain and clean up code without actually executing it.
|
||||||
Custom code inspections can be implemented as IntelliJ Platform plugins.
|
Custom code inspections can be implemented as IntelliJ Platform plugins.
|
||||||
Examples of the plugin approach are the IntelliJ Platform SDK code samples [inspection_basics](%gh-sdk-samples%/inspection_basics) and [comparing_references_inspection](%gh-sdk-samples%/comparing_references_inspection).
|
Examples of the plugin approach are the IntelliJ Platform SDK code samples [inspection_basics](%gh-sdk-samples%/inspection_basics) and [comparing_references_inspection](%gh-sdk-samples%/comparing_references_inspection).
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
[//]: # (title: Controlling Highlighting)
|
# Controlling Highlighting
|
||||||
|
|
||||||
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||||
|
|
||||||
|
<link-summary>Suppressing highlighting in the editor programmatically.</link-summary>
|
||||||
|
|
||||||
The results of analyzing code by several mechanisms provided by the IntelliJ Platform ([Syntax errors](syntax_errors.md), Annotators, [Inspections](code_inspections.md)) are converted to highlighting information used to highlight the code in the editor.
|
The results of analyzing code by several mechanisms provided by the IntelliJ Platform ([Syntax errors](syntax_errors.md), Annotators, [Inspections](code_inspections.md)) are converted to highlighting information used to highlight the code in the editor.
|
||||||
However, in some contexts, the provided highlighting information is invalid or unnecessary.
|
However, in some contexts, the provided highlighting information is invalid or unnecessary.
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
[//]: # (title: Syntax Errors)
|
# Syntax Errors
|
||||||
|
|
||||||
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||||
|
|
||||||
|
<link-summary>Suppressing syntax errors in the editor programmatically.</link-summary>
|
||||||
|
|
||||||
The IntelliJ Platform provides a mechanism for analyzing the PSI tree and highlighting syntax errors out of the box.
|
The IntelliJ Platform provides a mechanism for analyzing the PSI tree and highlighting syntax errors out of the box.
|
||||||
|
|
||||||
While the PSI tree for the code is being built, a [parser](implementing_parser_and_psi.md) tries to consume tokens according to language grammar.
|
While the PSI tree for the code is being built, a [parser](implementing_parser_and_psi.md) tries to consume tokens according to language grammar.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user