I'm working on OpenCart project now, which intensely uses XML-configs for extensions (called OCMOD).
XML config is the mix of declarations with injections of PHP/CSS/JavaScript code, see part of real OCMOD modification file below:
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>some name</name>
<id>some ID</id>
<version>some version</version>
<code>some code</code>
<author>author</author>
<link><![CDATA[link]]></link>
<file path="catalog/controller/product/product.php">
<operation>
<search><![CDATA[
$product_info = $this->model_catalog_product->getProduct($product_id);
]]></search>
<add position="after"><![CDATA[
// some PHP code here
$s = 'hello world';
echo $s;
]]></add>
</operation>
</file>
</modification>
I use PHPStorm 2019.2 for development. By default it's bundled with plugin to inject code into source files.
Are there any techincs to achieve syntax highlighting for injections into XML-code?
P.S. I've found this answer, but it doesn't fit my needs because PHP-injections in my file don't have <?php
and ?>
tags.