From ab22b5a21c5e1ef40ae414a7698791e56b51b366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 19 Oct 2023 17:11:14 +0200 Subject: [PATCH] language_injection.md: note InjectionBackgroundSuppressor --- .../custom_language_support/language_injection.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/topics/reference_guide/custom_language_support/language_injection.md b/topics/reference_guide/custom_language_support/language_injection.md index f758fe162..d358fd353 100644 --- a/topics/reference_guide/custom_language_support/language_injection.md +++ b/topics/reference_guide/custom_language_support/language_injection.md @@ -1,7 +1,7 @@ -# Language Injection - +# Language Injection + Injecting a language into different language elements. @@ -309,3 +309,7 @@ Now, inside the editor the injected portion will work as expected where foo is t ## Formatting To control delegation of formatting to containing file, implement [`InjectedFormattingOptionsProvider`](%gh-ic%/platform/code-style-api/src/com/intellij/formatting/InjectedFormattingOptionsProvider.java) and register in `com.intellij.formatting.injectedOptions` extension point (_2022.3_). + +## Injection Highlighting + +To suppress highlighting from Code | Injected language fragment setting in Preferences | Editor | Color Scheme | General, injection host must implement [`InjectionBackgroundSuppressor`](%gh-ic%/platform/analysis-impl/src/com/intellij/psi/impl/source/tree/injected/InjectionBackgroundSuppressor.java).