Text highlighting of ractivejs template scripts not working in phpstorm

Hi all,

I am using ractivejs with php project and PHPStorm 8.0.2.

However, when I use a ractivejs script all the text within that script is white and not highlighted. This is different from what happens with a javascript script.

I am attaching a screenshot so that you guys can get the idea.

Does anyone know what I need to do in order to get the syntax highlighting just as if it was a Javascript?

Thanks,

Andrés

P.S. I have searched a lot but if you guys can also point me to the right direction I would appreciate it.



Attachment(s):
Screen Shot 2014-11-26 at 9.51.17 AM.png
4 comments
Comment actions Permalink

I found a not so ideal solution. Just remove the type attribute from the script and it works and highlights.

http://stackoverflow.com/questions/27155913/how-to-get-text-highlighting-of-ractivejs-template-scripts-in-phpstorm/27156716#27156716

0
Comment actions Permalink

This is the expected behavior: PHPStorm parses the contents of the script tag  according to the type specified in <script> tag. And it doesn't  know anything about 'text/reactive' mime type at the moment. And considers  it as a plain text. When 'type' attribute is ommited, 'javascript' type is assumed

0
Comment actions Permalink

Thanks. Would there be a way to have it recognize the mime type text/ractive?

0
Comment actions Permalink

Yes - please create a feature request for this type support in youtrack,
https://youtrack.jetbrains.com/issues/WEB


0

Please sign in to leave a comment.