mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
documentation.md: update, DocumentationMarkup
This commit is contained in:
parent
c5e9199ed8
commit
972f25eeb6
@ -3,16 +3,17 @@ title: Documentation
|
||||
---
|
||||
<!-- Copyright 2000-2020 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. -->
|
||||
|
||||
To provide different kinds of documentation support (tooltips on **Ctrl-hover**, quick documentation popup etc.), the plugin needs to provide an implementation of the
|
||||
To provide different kinds of documentation support, the plugin needs to provide an implementation of the
|
||||
[`DocumentationProvider`](upsource:///platform/analysis-api/src/com/intellij/lang/documentation/DocumentationProvider.java)
|
||||
interface and register it in the `com.intellij.lang.documentationProvider` extension point.
|
||||
A standard base class for such implementations is available in the class
|
||||
[`AbstractDocumentationProvider`](upsource:///platform/analysis-api/src/com/intellij/lang/documentation/AbstractDocumentationProvider.java).
|
||||
|
||||
The `getQuickNavigateInfo()` method returns the text to be displayed when the user holds the mouse over an element with <kbd>Ctrl</kbd> pressed.
|
||||
|
||||
When generating complete documentation via `generateDoc()`, use [`DocumentationMarkup`](upsource:///platform/analysis-api/src/com/intellij/lang/documentation/DocumentationMarkup.java) to layout contents (see JavaDoc for details).
|
||||
|
||||
**Example**:
|
||||
[`DocumentationProvider`](upsource:///plugins/properties/src/com/intellij/lang/properties/PropertiesDocumentationProvider.java)
|
||||
for
|
||||
[Properties language plugin](upsource:///plugins/properties/)
|
||||
|
||||
|
||||
The `getQuickNavigateInfo()` method returns the text to be displayed when the user holds the mouse over an element with `Ctrl` pressed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user