9月
22
在使用一些PHP模板,框架时,经常遇到一些自定义的后缀,如smarty的tpl,Prado的Page,这些在Dreamweaver中都不能支持打开。
下面的方法是如何定制:原文参考 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
以.Page为例:
1。打开 Extensions.txt,位置在 C:\Documents and Settings\YOURNAME\Application Data\Macromedia\Dreamweaver 8\Configuration(WINXP下)
2.把后缀.PAGE加到ALL DOCUMNET行。
3.把.PAGE加到HTML行.
4.保存文件,重新打开DW。
现在你的DW已经可以打开.PAGE文件了,但是还不够,PAGE文件不能支持WYSIWYG视图,再来!
5.打开MMDocumentTypes.xml 位置:D:\Macromedia\Dreamweaver 8\Configuration\DocumentTypes(安装目录下).
6.在
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,page" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,page" file="Default.html" writebyteordermark="false">
行中加上后缀。
7.OK!重新启动DW吧。
Defined tags for this entry: DreamWeaver, HTML


