Reputation: 22357
I am using a template library that our company has developed.
It is really great, however, we are using a tag:
<g:js>
// javascript code
</g:js>
This tag does some stuff but essentially that is javascript code with some objects passed to it at the client.
How can I get intellij to recognize this as javascript code? Right not it is being treated as plain text.
Upvotes: 0
Views: 75
Reputation: 16669
You have to Inject language. To do that, move the cursor inside the tags (where your JS code is) and either:
Inject Language
-> JavaScript Inject language
After that you can customize injection settings using language injection settings
(again, by using one of those methods).
Upvotes: 1