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