This article is reproduced, to prevent oneself later find, write a copy. and make changes according to your own actions.
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 of Freemarker in Bundle-classpath:freemarker-2.3.6.jar with your own (my is 2.3.20.jar, here the package must be replaced, because the version of the old will report Save Failed Freemarker.core.ParseException cannot is found by error). 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: The code has the original pure black into a colored font
Originally from: http://my.oschina.net/u/1450300/blog/377257