Reputation: 1
I have installed the EJS package in my nodejs project by doing npm install --save ejs
, however when I type the tag <% %>
, my IDE does not highlight the syntax.
I expect the tag's color to change from white to blue.
Instead, the <
is red and the %
is white. How can I fix this?
Upvotes: 0
Views: 934
Reputation: 3633
If you are using Visual Studio Code, by default it doesn't understand EJS, you need to install a plugin for that. Following should do
https://marketplace.visualstudio.com/items?itemName=DigitalBrainstem.javascript-ejs-support
Upvotes: 1