Vote count:
0
In IDEA, when editing a HTML file, the text content of <script>
elements will be treated differently by the IDE according to the type
attribute. For example, the text content of a <script type="text/javascript">
element is treated as Javascript and highlighted as such; similar for <script type="text/css">
and CSS, <script type="application/json">
and JSON, and others.
How can I configure a custom <script type="...">
language association?
Specifically, I want IDEA to treat the text content of script elements of type "x-shader/x-fragment"
as GLSL. I have a GLSL language plugin installed, but it only highlights .glsl
files. I am using IntelliJ IDEA 14.0.3.
NB: There is no 'Inject Language/Reference' option for the content of elements, unlike other HTML elements.
Custom syntax highlighting for content of
Aucun commentaire:
Enregistrer un commentaire