Eclipse Install Freemarker Editor Plugin
Download freemarker-ide on the following URL:
http://sourceforge.net/projects/freemarker-ide/files/
http://sourceforge.net/projects/freemarker-ide/files/
After the download is finished, unzip, because the Freemarker version of the IDE is older, you need to replace the existing (own) version of the Freemarker.jar original Freemarker-2.3.6.jar, and modify:
/meta-inf/manifest. Mf
/meta-inf/manifest. Mf
Replace the jar in Bundle-classpath:freemarker-2.3.6.jar, Freemarker, with your own. Then copy the hudson.freemarker_ide_0.9.14 package under the extracted plugin folder to the Eclispe plugin folder and restart Eclipse to see that the. ftl format file is already set to the default Freemarker Editor edited.
PS: Some of the FTL templates are written in. html,.htm format files, so that you can recognize the FTL variables when developing these files, you need to add open methods for these files:
A new content in Freemarker Editor appears in the tree bar on the left side of Window–> Preferences. Under general–> editors–> file associations, add (Add) *.htm Editor for *.html and Freemarker files as their associated editor (Associated Editors). This allows you to choose to right-click the file –> Open with HTML editor or open with Freemarker editor when you are editing a file that mixes HTML and freemarker tags.
After the installation is complete, after you open the. ftl file, the format picture shown is as follows:
Eclipse Install Freemarker Editor Plugin