documents.md: do not use deflist

This commit is contained in:
Yann Cébron 2021-10-13 16:44:59 +02:00
parent d3a93e544e
commit 87b8f78185

View File

@ -9,14 +9,14 @@ The IntelliJ Platform handles encoding and line break conversions when loading a
## How do I get a Document?
From an Action
: `e.getData(CommonDataKeys.EDITOR).getDocument()`
#### From an Action
`e.getData(CommonDataKeys.EDITOR).getDocument()`
From a Virtual File
: `FileDocumentManager.getDocument()`. This call forces the document content to be loaded from disk if it wasn't loaded previously. If only open documents or documents which may have been modified are considered relevant, use `FileDocumentManager.getCachedDocument()` instead.
#### From a Virtual File
`FileDocumentManager.getDocument()`. This call forces the document content to be loaded from disk if it wasn't loaded previously. If only open documents or documents which may have been modified are considered relevant, use `FileDocumentManager.getCachedDocument()` instead.
From a PSI File
: `PsiDocumentManager.getInstance().getDocument()` or `PsiDocumentManager.getInstance().getCachedDocument()`
#### From a PSI File
`PsiDocumentManager.getInstance().getDocument()` or `PsiDocumentManager.getInstance().getCachedDocument()`
## What can I do with a Document?