Conversation
Add support for Velocity files (.vm).
|
I'm not super familiar with Velocity but on Wikipedia it says Velocity templates can be used for HTML, XML, Java source code, SQL source code, etc. Clearly it would be wrong to highlight all those as HTML. Is there any kind of prefix convention to disambiguate? For example, if people commonly write |
|
There is a velocity mode defined for CodeMirror: http://codemirror.net/mode/velocity/index.html |
|
I put up PR #7588 today which will make it possible in user prefs to map .vm to .html, which I think is a better approach here because Velocity can be used for quite a variety of things. Also worth noting is that there's now a Velocity extension (1.0.1 uploaded on April 17th). |
|
@TomMalbran It looks like the CM mode isn't an overlay/mixed mode, so everything other than the template syntax is shown as plain text. In this PR, the user's preference is the exact opposite -- highlight the HTML bits and don't highlight the template syntax. |
|
Now that #7588 has landed, I think that's the better solution for this... people can configure .vm files to map to HTML if they are using Velocity in that way in a project. |
Add support for Velocity files (.vm).