dreamweaver支持freemarker.ftl扩展名

1、Dreamweaver默认打开后缀名为ftl的文件时设计视图为灰色
  
用编辑器打开 X:\Dreamweaver CS4\Configuration\DocumentTypes\MMDocumentTypes.xml
修改后如下:

<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,ftl" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,ftl" file="Default.html" writebyteordermark="false">

保存退出。

2、修改Dreamweaver编辑器

 编辑->首选参数-> 文件类型/编辑器 中增加 flt格式

 

3. 修改tags.xml

如 X:\Dreamweaver\Configuration\ThirdPartyTags\Tags.xml

加入

< !-- FreeMarker Tag By hety-->
<directive_spec tag_name="ftl_b1" start_string="[#" end_string="]" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>
<directive_spec tag_name="ftl_e1" start_string="[/#" end_string="]" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>
<directive_spec tag_name="ftl_i" start_string="[@" end_string="/]" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>
<directive_spec tag_name="ftl_b2" start_string="<#" end_string=">" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>
<directive_spec tag_name="ftl_e2" start_string="</#" end_string=">" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>
<directive_spec tag_name="ftl_v" start_string="${" end_string="}" detect_in_attribute="true" icon="TemplateExpr.gif" icon_width="17" icon_height="15"/>


重启下dreamweaver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值