diff --git a/topics/reference_guide/custom_language_support/language_injection.md b/topics/reference_guide/custom_language_support/language_injection.md index f034f5b46..aa53f595e 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 + + Injecting a language into different language elements. @@ -134,13 +134,13 @@ For instance, injecting SQLite into Python code is specified by the following op Inside an injection, the following tags can be used: -| XML Tag | Description | -|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `` | A short name for the injection. | -| `` | The element pattern that defines where an injection will take place. The content is wrapped in `![CDATA[...]]`. | -| `` and `` | Static content that is wrapped around the injected code, e.g., to make it a valid expression. For example, to a CSS color specification inside a string, it can be wrapped with the prefix `div { color:` and the suffix `;}` to make it a valid CSS expression. | +| XML Tag | Description | +|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `` | A short name for the injection. | +| `` | The element pattern that defines where an injection will take place. The content is wrapped in `![CDATA[...]]`. | +| `` and `` | Static content that is wrapped around the injected code, e.g., to make it a valid expression. For example, to a CSS color specification inside a string, it can be wrapped with the prefix `div { color:` and the suffix `;}` to make it a valid CSS expression. | | `` | A regex for the content that specifies when this injection should be applied. Regex groups can specify the text range of the injection (e.g. `^javascript:(.+)`, see [`xmlInjections-html.xml`](%gh-ic%/plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml)). | -| `` | A regex for the content that specifies when this injection should not be applied. | +| `` | A regex for the content that specifies when this injection should not be applied. | #### Create an XML File to Load the Configuration @@ -312,4 +312,4 @@ To control delegation of formatting to containing file, implement [`InjectedForm ## 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). +To suppress highlighting from Code | Injected language fragment setting in Settings | Editor | Color Scheme | General, injection host must implement [`InjectionBackgroundSuppressor`](%gh-ic%/platform/analysis-impl/src/com/intellij/psi/impl/source/tree/injected/InjectionBackgroundSuppressor.java).