mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 09:17:50 +08:00
syntax_highlighting_and_error_highlighting.md: Fix code snippet formatting
This commit is contained in:
parent
d0c7c8f8ac
commit
b720795b2b
@ -98,7 +98,7 @@ To highlight a region of text as a warning or error:
|
|||||||
<tab title="2020.1 and later" group-key="2020.1">
|
<tab title="2020.1 and later" group-key="2020.1">
|
||||||
|
|
||||||
```java
|
```java
|
||||||
holder.newAnnotation(HighlightSeverity.WARNING,"Invalid code") // or HighlightSeverity.ERROR
|
holder.newAnnotation(HighlightSeverity.WARNING, "Invalid code") // or HighlightSeverity.ERROR
|
||||||
.withFix(new MyFix(psiElement))
|
.withFix(new MyFix(psiElement))
|
||||||
.create();
|
.create();
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user