RubyMine does not highlight ruby code in js.coffee files

RubyMine does not highlight ruby code inside js.coffee files despite the plugin is ON (Plugins sections in Settings) and coffeescript itself is highlighted. I can not move to /works/modal pressing F4 or even see it highlighted properly.
http://i.stack.imgur.com/Osol5.png

2 comments
Comment actions Permalink

RubyMine consider js.coffee files as ERB only when file is located under assets/javascript directory. Could you provide related path of file new.js.coffee?

0
Comment actions Permalink

My new.js.coffee is located under app/views/categories path. But,

1) it's my home project and on my working project (on a daily job) ruby code is interpreted correctly
job.jpg

2) I've tried to insert ruby code into js.coffee file on another project under app/assets/javascripts folder and it's still not highlighted
home.jpg
I'm opening both projects from my home machine and from one RubyMine instance. So I presume the trouble dwells somewhere in settings.

0

Please sign in to leave a comment.