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?



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

Screen Shot 2014-11-26 at 9.51.17 AM.png
Comment actions Permalink

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


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

Comment actions Permalink

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

Comment actions Permalink

Yes - please create a feature request for this type support in youtrack,


Please sign in to leave a comment.