Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make Dreamweaver support other file types such as cshtml, phtml, etc.

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to make Dreamweaver support cshtml, phtml and other file types, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

(1) add file types:

Open DW, click "Edit" on the toolbar, click "preferences" at the bottom, select "File Type / Editor", add the file types you need to add there in "Open in Code View", and press OK.

(2) Open configuration\ DocumentTypesand under the Dreamweaver installation directory and find MMDocumentTypes.xml to open it.

Then modify the winfileextension and macfileextension attributes in the documenttype tag whose id is "HTML", and add the file type to those two attributes

(3) Open configuration under the Dreamweaver installation directory to find Extensions.txt and open it.

Then find the end of the first and second lines, which is actually the end of ": All Documents" and ": HTML Documents", and add your file type before these two colons

(4) Open C:\ Users\ * (your user name)\ AppData (may be hidden)\ Roaming\ Adobe\ Dreamweaver CS5\ en_US (Chinese version is zh_CN)\ Configuration\ DocumentTypes

Then, just like step (2), open MMDocumentTypes.xml and modify it.

(5) in the same location, open C:\ Users\ * (your user name)\ AppData (may be hidden)\ Roaming\ Adobe\ Dreamweaver CS5\ en_US (zh_CN in Chinese)\ Configuration

Also like step (3), open Extensions.txt and then modify

(6) restart DW after modification.

Let Dreamweaver support phtml:

ZendFramework template default extension is .phtml, open with DW default is to use plain text editing, can not highlight and can not display code prompts, and so on. Simply modify the configuration file of Dreamweaver to allow DW to open phtml and use php engine to parse:

Find the following files:

% Dreamweaver installation directory%\ configuration\ documenttypes\ mmdocumenttypes.xml

Change the original content:

MySQL "" writebyteordermark= "" false "" file= "" Default.php "," macfileextension= "," php,php3,php4,php5 "," winfileextension= "," php,php3,php4,php5 "," internaltype= "," Dynamic "," mysql= "," servermodel= "" PHP "> to (that is, add .phtml in bold):

Restart DW after saving.

The above is all the contents of the article "how to make Dreamweaver support cshtml, phtml and other file types". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report