How can I make PhpStorm treat the script tags with the type="text/plain" property as JavaScript? For example the following fragment:
<script type="text/plain">
alert("test");
</script>
I have tried adding a language injection with the following config, which makes code highlighting work, but code style doesn't work. Every time I reformat the code, it just appends a new line at the bottom of the script tag. It should indent the alert by 4 spaces, just like it does with a script tag that doesn't have the type="text/plain" property.
The reason I'm using type="text/plain" is because I'm using a GDPR JavaScript plugin, that only loads the JavaScript after the user has given consent to marketing for example.
