0

The problem:

<% javascript_tag do %>
  // some js
<% end %>

When I use this method the javascript-syntax is not triggered inside the block. When I use the <script> tag it works. Is there a way to trigger the javascript syntax for the rails block in vim?

Thanks.

1 Answer 1

1

Take a look at vimembedded-syntax-highligting, it's about similar problem. You may also complete a feature request/ issue Tim Pope's vim-rails github repo.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.