How to enable vm files (velocity) files highlighting in Eclipse &/or Dreamweaver? I have to work with VM files at my workplace. And I can not seem to get these files highlighted in Dreamweaver...
Asked
Active
Viewed 3,035 times
3
-
Basically I want to make sure vm files get highlighted just like html files in dreamweaver. – Hello Universe Sep 24 '13 at 00:01
3 Answers
4
According to this post, and I agree, Veloclipse is the best Velocity editor for Eclipse. You install it by doing the following:
- In Eclipse choose Help > Install new software...
- Copy and paste this URL into the text field and press enter
- Install the Veloclipse editor feature
Regarding Dreamweaver, I don't know of any Velocity syntax highlighting for. But in Eclipse you can 'mount' your directory that contains your vm files without having to create a project.
- In Eclipse create a new simple Project
- In the project do File > New Folder
- In the advanced section choose to 'link' this folder to a directory on your filesystem that contains your vm files.
- Edit those files with Eclipse and Veloclipse plugin
- Continue using dreamweaver for editing all other files.
1
There's an eclipse plug-in for this: VelocityUI
Installation:
- Download the JAR file from here:http://code.google.com/p/velocity-edit/downloads/detail?name=com.hudson.velocityweb_1.6.5.jar&can=2&q=
- Copy it into your eclipse\dropins folder.
- Restart Eclipse
- Create a new Eclipse project (assuming you don't already have one)
- Copy in some .vm files
- Double click on .vm files - you should be able to edit them and see the syntax highlighting.

ifx
- 561
- 2
- 13
-
How do I use it? Which file do I download? Where do I put the file? I need some instruction please/ Oh just released you are talking of Eclipse IDE. I need for Dreamweaver please – Hello Universe Sep 26 '13 at 11:34
-
As I noted, I need for Dreamweaver too. But thanks for your answer – Hello Universe Sep 28 '13 at 02:46
-
Thank you everyone. I always Eclipse more than Dreamweaver. It was hard to decide whom to award the bounty. I decided on the 1st person since he is the one who suggested it. Thanks everyon – Hello Universe Sep 28 '13 at 10:51
1
For Dreamweaver, follow Adobe's instructions here to edit the Extensions.txt file and the MMDocumentTypes.xml file. Put the vm extension in the right places (you need it to be treated as HTML) and you will get what you want.

Erica Kane
- 3,137
- 26
- 36