简体   繁体   中英

How to Enable JavaScript Code Formatter with 'content_for' helper for RubyMine 4.0

I'm using RubyMine 4.0.3 for Mac. When I writing ERB view templates and write inline javascript, 'content_for :javascript' helper is not highlighted and formatted as javascript. Like below:

<% content_for :javascript do %>
/* JavaScript code */
<% end %>

How to enable RubyMine's JavaScript code formatter on Rails rule? I found that 'script' tag is highlighted collectly, like this:

<script type="text/javascript">
/* JavaScript code */
</script>

But it is not Rails style isn't it?

目前不可能,我已经提交了功能请求 (星号/投票)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM