---
title: "修改dreamweaver是它能支持freemarker"
author: "weishuwei"
date: "2007-05-31T12:57:00Z"
tags: []
slug: "dreamweaver-freemarker"
draft: false
lastmod: "2007-05-31T12:57:00Z"
id: 85041
url: "https://weishuwei.iteye.com/blog/85041"
---

1,如上修改ApplicationData/Micomedia/Dreamweaver/Configuration/Extensions.txt  
在HTML Documents前加上ftl,如:ftl:HTML Documents  
2,如上第二步:修改Configuration/DocumentTypes/MMDocumentTypes.xml文件  
把id为HTML里的winfileextension里加入ftl,macfileextension里也加上ftl  
3,支持Freemarker:将freemarker 脚本显示成和js一样的图标效果吧  
打开Dreamweaver 8\\Configuration\\ThirdPartyTags\\Tags.xml加入

 

1. &lt; !-- FreeMarker Tag By hety--&gt;
2. &lt;directive\_spec tag\_name="ftl\_b1" start\_string="\[#" end\_string="]" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;
3. &lt;directive\_spec tag\_name="ftl\_e1" start\_string="\[/#" end\_string="]" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;
4. &lt;directive\_spec tag\_name="ftl\_i" start\_string="\[@" end\_string="/]" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;
5. &lt;directive\_spec tag\_name="ftl\_b2" start\_string="&lt;#" end\_string="&gt;" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;
6. &lt;directive\_spec tag\_name="ftl\_e2" start\_string=" end\_string="&gt;" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;
7. &lt;directive\_spec tag\_name="ftl\_v" start\_string="${" end\_string="}" detect\_in\_attribute="true" icon="TemplateExpr.gif" icon\_width="17" icon\_height="15"/&gt;

重启下dreamweaver后,我们可以打开ftl文件,在可视化视图上编辑了