File | Settings | Editor | Language Injections
For the Language Injections page to be available, the IntelliLang plugin must be enabled.
Use this page to manage the list of available language injections and to configure the language injection feature for text, attributes, and parameters.
To sort the information, use the cells in the header row (Name, Language and Scope). To perform other tasks, use the check boxes and the toolbar icons.
In this section:
- Language Injections
- Language Injection Settings Dialog: XML Tag
- Language Injection Settings Dialog: XML Attribute
- Language Injection Settings: Generic PHP
Before you start working with language injections, make sure that IntelliLang plugin is enabled.
The plugin is bundled with PhpStorm and activated by default. If not, enable the plugin as described in Enabling and Disabling Plugins.
You can sort the information by any of the columns by clicking the cells in the header row. The current sorting status is shown by the corresponding sorting marker: for the ascending order or for the descending order.
|Item||Tooltip and Shortcut||Description|
|Use this icon or shortcut to create a new entry. Select the target category from the list and then specify the settings in the dialog that opens.|
|Use this icon or shortcut to remove the selected entries from the list.|
|Click this icon to re-configure the selected entry in the Language Injection Settings dialog box that opens.|
|Duplicate||Use this icon to create a copy of the selected injection entry. Edit the copy as necessary.|
|Enable Selected Injections||Click this icon to enable the injections that are currently selected in the list.|
|Disable Selected Injections||Click this icon to disable the injections that are currently selected in the list.|
Move to Project/IDE Scope
|Use this icon or shortcut to move the selected injections between the IDE and the project levels. See also, .|
|Import||Click this button to have an injection configuration from another PhpStorm installation imported.
The Select Path dialog opens, where you can
This will not affect the contents of the configuration file.
This selective import-feature makes it easy to share certain configurations in a team without losing any local entries as it happens when settings are imported via the core Importing Settings feature.
To prevent inconsistent data, import is only possible if the existing configuration has not been changed or has been saved using the Apply button.
Click this button to have one or several selected injection configurations saved in a file. Upon clicking this button,
the Export Selected Injections to File dialog box opens.