From cd7068ca7db5d4f6d82e55a63e81fb0d8dc2d2f9 Mon Sep 17 00:00:00 2001 From: Patrick Scheibe Date: Tue, 2 Nov 2021 06:38:35 +0100 Subject: [PATCH] Fix heading type in language_injection.md --- .../custom_language_support/language_injection.md | 4 ++-- 1 file changed, 2 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 84fcf67b2..74b396b5b 100644 --- a/topics/reference_guide/custom_language_support/language_injection.md +++ b/topics/reference_guide/custom_language_support/language_injection.md @@ -137,7 +137,7 @@ Therefore, you load the configuration optionally in your main plugin.xmlorg.intellij.intelliLang ```` -### LanguageInjectionContributor and LanguageInjectionPerformer +## LanguageInjectionContributor and LanguageInjectionPerformer The `com.intellij.languageInjectionContributor` EP provides injection information for the given context in terms of _what_ to inject. As a plugin author, implement this EP to provide context-specific injections. @@ -175,7 +175,7 @@ If there is no primary `LanguageInjectionPerformer` found, then a fallback injec The method `performInjection()` does the actual injection into the context PSI element and/or some elements around it if needed in case if they are semantically connected (concatenation injection for instance). -### MultiHostInjector +## MultiHostInjector `com.intellij.lang.injection.MultiHostInjector` is a very low-level API, but it gives plugin authors the most freedom. It performs language injection inside other PSI elements, e.g. inject SQL inside XML tag text or inject regular expressions into Java string literals.