Search code examples
syntax-highlightingwebstormvelocitytemplate-engineweb-frontend

Velocity syntax highlighting in WebStorm


Is there a plugin/download for Velocity syntax in WebStorm?

I came across this post but do not have the dir filetypes in my path (for Mac). I'd like some syntax highlighting for easier reading if it's available:

screenshot of vanilla syntax


Solution

  • Since it is not supported in WebStorm yet I would suggest associating .vm files with xhtml. You can do that by opening the search action dialog (cmd+shift+a in mac) and searching for associate with file type. Then choose the xhtml format. It will not highlight all the velocity related code correctly but it is the best available solution.