38

I've seen Veloedit, which seems to have good syntax highlighting but doesn't allow tab characters in the file being edited (wtf?) and also has no understanding of HTML.

With a little bit of googling I've found Veloecipse, which claims to build upon Veloedit and also add HTML support - but doesn't seem to be compatible with Eclipse 3.4.

Are there any other Velocity template editor plugins for Eclipse that anyone is using?

The ideal solution would have the following features:

  • Syntax hightlighting of VTL
  • HTML syntax highlighting as well
  • Auto-complete of VTL syntax
  • Allows tabs!

Update: see my answer below

matt b
  • 138,234
  • 66
  • 282
  • 345

5 Answers5

27

Here's an update: I've been using Veloeclipse and it works well, not sure what led to my original comment about not working with Eclipse 3.4 but I am definitely using it with 3.4 now. Veloeclipse works better than Veloedit and Velocity Web Editor, in my opinion.

matt b
  • 138,234
  • 66
  • 282
  • 345
  • 9
    The correct url for the project is: http://code.google.com/p/veloeclipse/ – David García González Jan 12 '11 at 10:56
  • I've tried all the velocity plugins at this point and I can't get any of them to work correctly with custom directives.The codebase I'm working on uses directives from org.apache.struts2.views.velocity.components extensively and every usage in the template is marked as an error. Is there a way to get this to work without getting so many false-positive errors in eclipse? – depsypher May 07 '12 at 21:19
  • Nevermind, VeloEdit handles it... Prefs > Velocity UI > List of User Directives > New – depsypher May 16 '12 at 18:15
5

I have installed Veloeclipse since Veloedit raised exceptions when opening the editor and it works fine with eclipse 3.5.2.

In order to install it, I had to deselect "Group items by category" in the "Install new software..." dialog.

Oliver Marienfeld
  • 1,154
  • 9
  • 17
  • Thanks for the *Group items by category* hint. +1 – whiskeysierra Nov 12 '10 at 19:13
  • 2
    I just installed Veloeclipse on Indigo Service Release 1 and all is well so far.Just wanted to add that to assuage the fears of those that are balking at the "Tested on Eclipse 3.3 and 3.4" comment on the project webpage. – CatsAndCode Jan 03 '12 at 20:49
1

you can download Veloeclipse for Velocity Template from http://code.google.com/p/veloeclipse/

1

just try

Velocity Web Edit

http://velocitywebedit.sourceforge.net/

Reji
  • 3,426
  • 2
  • 21
  • 25
0

According to http://sourceforge.net/project/showfiles.php?group_id=126011 the last release was 2006 so, I don't think that it's actively maintained anymore.

Too bad that veloedit doesn't work.

Ok, I tried it again and now it worked. Must have something to do with my installation. So for me veloedit is the way to go :)

Next Edit: On the next day, I got Eclipse exceptions again, when I started to use the veloedit editor. Now I'm just using a regular html/jsp editor to have at least some kind oh html syntax highlighting...

Patrick Cornelissen
  • 7,968
  • 6
  • 48
  • 70
  • I've been using Veloeclipse and it works well – matt b Mar 25 '09 at 12:56
  • 1
    Hmm, I tried it yesterday and I got all sorts of weird exceptions when I tried to use the editor on my eclipse 3.4 But I am having some other problems too, so this may be related to this system/eclipse installation. I will give it another try. – Patrick Cornelissen Mar 26 '09 at 10:37