Eclipse 通过 JSP编辑方式 打开 FreeMarker *.ftl 文件
这里介绍的是不需要通过安装插件的方式 以 JSP编辑方式 打开 FreeMarker *.ftl 文件
1、Window → preferences → Content Types → Text → JSP
2、点击下方的 File associaions 右侧的 Add... 按钮,输入 *.ftl 添加
3、点击右下角的 Apply and Close 按钮
PS:如果需要以 HTML编辑方式 打开,那么选择 Text 下的 HTML,之后的步骤是一样的