Working with Apache Velocity (.vm) files. These are mostly HTML but contain a few Velocity-specific lines like #set($foo = 'bar') or #if(condition) ... #end etc.
I can set up a new file association in WebStorm to handle .vm files and highlight these tags, but then the HTML doesn't get highlighted. I can configure WebStorm to treat .vm files as HTML, but then I can't add Velocity's custom tags to the (locked) HTML definition.
Is there some way I can combine these two features and get syntax highlighting for Velocity to work properly?