Eclipse打开ftl文件无格式提示效果解决方法
原生解决方式,方法特点无需下载插件,和eclipse编辑html和jsp文件一模一样
步骤:
1:windows---prefenrences---general---edirors---Files Associations
新增一个*.ftl 文件类型。管理JSP Editor 打开,点击ok
2:windows---prefenrences---general-----content Types
完成之后无需重启eclipse,只需重新打开.ftl文件即可。
注意:最后一步content type中,default encoding要改为UTF-8,否则ftl中会出现中文乱码。