Editor / IDE plugins

Syntax highlight definitions and other plugins for text editors and IDE-s. We encourage everybody to develop and send syntax highlight definitions or other plugins for his/her favorite editor or IDE!

Editor or IDE Features Get it
Eclipse Syntax highlight, syntax error marker, code completion for macro names and bean property names.

This is developed as part of the JBoss Tools Project.

Currently (2016-04-23, FreeMarker 2.3.24) it's highly recommended to install the nightly version instead of the official stable. For that, in Eclipse, go to "Help" / "Install New Software...", and copy-paste http://download.jboss.org/jbosstools/neon/snapshots/builds/jbosstools-freemarker_master/latest/all/repo/ into the "Work with" field. Then expand the check box tree appearing below, and select "FreeMarker IDE" only, then "Next", "Next", "Finish". This version works for Eclipse Mars too (probably even for Luna), despite that it's in the Neon branch of JBoss IDE.

Official stable version (not recommended at the moment - see above): In Eclipse, "Help" / "Eclipse Marketplace...", search for "JBoss Tools", "Install". A tree of check boxes will appear, uncheck all (by unchecking the root) except "FreeMarker IDE". (On older Eclipse you may have to use the JBoss Tools download page instead.)

Note: If the plugin comes with a different FreeMarker version than the one your application uses, it will mark the usage of too fresh language features as errors, or the other way around. To fix this, find freemarker*.jar inside the installed plugin, under <userHome>/.eclipse/ or under the Eclipse installation directory (you may need to search inside jar-s). Exit Eclipse, and overwrite it with the freemarker.jar you want, but keep the file name of the replaced jar. You may also need to find and delete the extracted OSGi bundle under configuration\org.eclipse.osgi for the changes to take effect.

Report bugs found on the bug tracker of the JBoss Tools project (Key: JBIDE; Component: freemarker), and help to make it better on GitHub!

Emacs Syntax highlight, indentation, block folding, some code navigation. Emacs major-mode for editing Web templates, includes FreeMarker support among others. The homepage of web-mode.el
Emacs (tried with 20.7) Syntax highlighting ftl.el v0.1
Kate and KWrite (tried with Kate 2.5.10 and 3.2) Syntax highlighting kwriteftl.tar.gz (2009-08-08)
NetBeans (tried with 8.0.2) Syntax highlight, syntax error marker, directive name auto-completion. Can be installed from NetBeans, under Tools/Plugins. Also manually from its NetBeans plugin portal page...
NetBeans (6.0, may doesn't work with 7+) Syntax highlight, code completion, template navigation Download from its NetBeans plugin portal page...
TextMate Syntax highlight Install from Github Project
TextPad 4 or later Syntax highlight textpadftl.zip (2003-03-24)
Vim ("Vi IMproved") Syntax highlight ftl.vim (2011-10-07)

Note that some editors/IDEs, such as IntelliJ IDEA and jEdit, supports FreeMarker out-of-the-box.