processingjs code highlightning

Hi,

I am new to the forum, so first of all: hello to everybody! phpStorm is awesome!

I am already quite familiar with the IDE's possibilities, but I cannot figure out, how to get processsingjs syntax highlighting intergrated. As you probably know, processingjs uses its own type attribute in the script tag, which is:
<script type="text/processing" scr="processing.min.js"></script>

Nevertheless it is "nothing else but" Javascript. So I wonder: is there any way to add a new type-attribute and link it to a Javascript validator?

Thanks in advance!
Regards,
Robert

2 comments
Comment actions Permalink

Hi Robert,

JavaScript code inside text/processing script blocks is not supported out of the box currently. Although you can kind of force IDE inject JavaScript here: put your caret inside the block, press Alt-enter and choose Inject Language option:
inject.png

Feel free to create a feature request for Processing script type support at http://youtrack.jetbrains.net/issues/WI.

Cheers,
Kirill

0
Comment actions Permalink

Thank you, Kirill, for your helpful quick response!!
I will open a feature request as you recommend.

Hace a good day!
Best wishes,
Robert

0

Please sign in to leave a comment.