I am editing a website that uses .tpl extensions and I would prefer that these files are treated as PHP files so that the PHP code is coloured & hinted as it would be in regular php file.
I am using CS6 on Mac OS (10.10)
I read online about editing the extensions.txt & MMDocumentTypes.xml files to add/edit this ability.
I also checked the official documents here: Change, add recognized file extensions | Dreamweaver
However I cannot get this ability to work.
1) extensions.txt already includes TPL as valid extensions of "All Documents" & PHP as defined in this file, so I have NOT edited this file.
~user/library/application support/adobe/dreamweaver cs6/en_us/configuration/extensions.txt
2) I edited MMDocumentTypes.xml Removing "tpl" from the HTML extensions & adding it to the PHP extensions.
Mac HD/Applications/Adobe Dreamweaver CS6/Configuration/DocumentTypes/MMDocumentTypes.xml
The changes made no difference & a TPL file still opens in plain code view in DW. (as in top-left screen example)
Can anyone help me to get this working?
Smarty Template files have already been added to Extensions.txt (line 16) and MMDocumentTypes.xml (line 3).
If you remove the 2 entries from the latter file (line 3) and place those 2 entries in line 75, you should be right to go
That is exactly what I have done - but it makes no difference.
Please see my final image in the post above. Removed from line 3 & added to line 75
Not sure what to do. I am certain I have followed the advice carefully.
Close Dreamweaver, rename the config folder and restart Dreamweaver. Then make the changes in both files.