Eclipse Install Freemarker Editor Plugin

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.