9.15. Writing Templates in Eclipse

Problem

You are writing a fair amount of Velocity and FreeMarker templates, and you are looking for a tool that can do some syntax highlighting, validation, and code completion.

Solution

If you are writing Velocity templates, use the Velocity UI for Eclipse. To get this plug-in, point your Eclipse Update Manager at http://veloedit.sourceforge.net/updates/.

If you are writing FreeMarker templates, use the FreeMarker Eclipse plug-in. To get this plug-in, point your Eclipse Update Manager at http://www.freemarker.org/eclipse/update.

See Also

The FreeMarker project maintains templates, plug-ins, and modes for Eclipse, Emacs, jEdit, KWrite, TextPad 4, and Vim. These tools are described on the FreeMarker site at http://freemarker.org/editors.html.

The Velocity project has pointers to templates, plug-ins, and modes for IntelliJ IDEA, Eclipse, UltraEdit, JEdit, TextPad, and Emacs. These tools are described on the Velocity site at http://jakarta.apache.org/velocity/devtools.html.

For more information about Eclipse, see Steve Holzner’s Eclipse (O’Reilly) and Eclipse Cookbook (O’Reilly).

Get Jakarta Commons Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.