Dreamweaver中打开CodeSmith文件

电脑环境:Windows2008+Dreamweaver 8英文版本

问题描述:Dreamweaver中默认打开文档时不支持打开CodeSmith模板文件对应的.cst后缀名文件,截图如下:

Dreamweaver中打开CodeSmith文件_第1张图片
解决步骤:

一、用记事本打开文件1:C:\Program Files (x86)\Macromedia\Dreamweaver 8\Configuration\Extensions.txt,修改内容如下:
HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,CST,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4

,PHP5,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML:All Documents
HTM,HTML,HTA,HTC,XHTML:HTML Documents
SHTM,SHTML,STM,SSI,INC:Server-Side Includes
JS:JavaScript Documents
XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
LBI:Library Files
DWT:Template Files
CSS:Style Sheets
ASP,ASA,CST:Active Server Pages
ASPX,ASCX,ASMX,CS,VB,CONFIG:Active Server Plus Pages
CFM,CFML,CFC:ColdFusion Templates
AS:ActionScript Files
ASC:ActionScript Communication Files
ASR:ActionScript Remote Files
TXT:Text Files
PHP,PHP3,PHP4,PHP5,TPL:PHP Files
LASSO:Lasso Files
JSP,JST:Java Server Pages
JSF:Fireworks Script
TLD:Tag Library Descriptor Files
JAVA:Java Files
WML:WML Files
EDML:EDML Files
VBS:VBScript Files
VTM,VTML:VTML Files

1、在第一行的ASP,字符串后面添加CST,
2、找到行ASP,ASA:Active Server Pages修改为ASP,ASA,CST:Active Server Pages

二、用记事本打开文件2:C:\Program Files (x86)\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\MMDocumentTypes.xml

找到行

 <documenttype id="ASP-VB" servermodel="ASP VBScript" internaltype="Dynamic" winfileextension="asp" macfileextension="asp" file="Default_vb.asp"

writebyteordermark="false">

修改为

 <documenttype id="ASP-VB" servermodel="ASP VBScript" internaltype="Dynamic" winfileextension="asp,cst" macfileextension="asp,cst" file="Default_vb.asp"

writebyteordermark="false">


三、用记事本打开文件3:C:\Users\Administrator\AppData\Roaming\Macromedia\Dreamweaver 8\Configuration\Extensions.txt
1、在第一行的ASP,字符串后面添加CST,
2、找到行ASP,ASA:Active Server Pages修改为ASP,ASA,CST:Active Server Pages

 

设置上述三步后,就能用Dreamweaver来查找和替换cst文件中的多行代码了。

你可能感兴趣的:(Dreamweaver中打开CodeSmith文件)