首页 > 代码库 > Windows2003下用Dreamweaver打开CodeSmith文件设置办法
Windows2003下用Dreamweaver打开CodeSmith文件设置办法
电脑环境:Windows2003(32位)+Dreamweaver 8英文版本(安装路径C:\Program Files\Macromedia\Dreamweaver 8)
问题描述:Dreamweaver中默认打开文档时不支持打开CodeSmith模板文件对应的.cst后缀名文件,截图如下:
解决步骤:
一、用记事本打开文件1:C:\Program Files\Macromedia\Dreamweaver8\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:AllDocuments
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:ActiveServer Pages修改为ASP,ASA,CST:ActiveServer Pages
二、用记事本打开文件2:C:\Program Files\Macromedia\Dreamweaver8\Configuration\DocumentTypes\MMDocumentTypes.xml
找到行
<documenttypeid="ASP-VB" servermodel="ASP VBScript"internaltype="Dynamic" winfileextension="asp"macfileextension="asp" file="Default_vb.asp"
writebyteordermark="false">
修改为
<documenttypeid="ASP-VB" servermodel="ASP VBScript"internaltype="Dynamic" winfileextension="asp,cst"macfileextension="asp,cst" file="Default_vb.asp"
writebyteordermark="false">
三、用记事本打开文件3:C:\Documentsand Settings\Administrator\Application Data\Macromedia\Dreamweaver 8\Configuration\Extensions.txt
1、在第一行的ASP,字符串后面添加CST,
2、找到行ASP,ASA:ActiveServer Pages修改为ASP,ASA,CST:ActiveServer Pages
设置上述三步后,就能用Dreamweaver来查找和替换cst文件中的多行代码了。