Install a plugin First
Right-click the FTL file, select Open with but no freemarker this option, if there is a direct open, if not then you need to download the relevant plug-in.
To install a Freemarker plug-in, you can edit the FTL file, which is integrated in Jboss-tools and can be installed in eclipse online
can be done by
Help–install New Software
http://download.jboss.org/jbosstools/updates/stable/indigo/
There is a freemarker IDE under JBoss application development, select Install to
The following is Baidu's
1. Open Eclipse, click the Window menu, select Preferences,
Choose General->editors->file Association,
Click the Add button to the right of file types, and the dialog box appears, enter *.FTL,
After entering *.FTL, click OK, then file types list, will be more than one FTL file type, select,
Click the Add button on the right side of associated editors to see the file association type, select JSP Editor,
Select Click OK,
Then, by associating it with the content types,
- 8
Set it up, and then open the page that you just
Cannot compile. ftl file under Eclipse, error-solving method