Dreamweaver adds cakephp CTP suffix name

Source: Internet
Author: User

Dreamweaver does not support CTP file highlighting by default, that is, you can use Dreamweaver to open a CTP file and edit it just like Notepad

But we can add Dreamweaver Extended support for CTP files by modifying two files

1. Open the DW installation file (open file location via Desktop icon,-->)

2. Open the configuration\extensions.txt file to find this line:

?
1 PHP,PHP3,PHP4,PHP5,TPL,PHP-DIST,PHTML:PHP Files

Add a CTP, such as

php,php3,php4,php5,tpl,php-dist,phtml,ctp:php Files

3. Open the Documenttypes\mmdocumenttypes.xml file to find this line:

winfileextension= "php,php3,php4,php5,phtml" macfileextension= "php,php3,php4,php5,phtml

Add a CTP after the phtml (in theory only one is added, followed by the Mac system support)

Add complete, as follows:

winfileextension= "PHP,PHP3,PHP4,PHP5,PHTML,CTP" macfileextension= "PHP,PHP3,PHP4,PHP5,PHTML,CTP

Two files were modified, three locations,

OK, restart the DW, found that the CTP file has been supported highlighting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.