I have php code written in test.inc file but dreamweaver is showing no color highlighting.
Is there any way to make them same color code as .php extension
|
I have php code written in test.inc file but dreamweaver is showing no color highlighting. Is there any way to make them same color code as .php extension
| |||
|
feedback
|
|
You'll have to add the On Windows 7 and Vista, the file is located at: C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes\MMDocumentTypes.xml and on XP: C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes\MMDocumentTypes.xml After opening the file, search for PHP. You'll come across this block:
Now add the
save this file, exit, and restart Dreamweaver. | |||||
|
feedback
|
|
Since this is a problem across a wide array of applications, the easiest solution I found was just to rename the files in question to this format: filename.inc.php And then for security purposes to prevent direct access, I usually add this in my htaccess files:
| |||
|
feedback
|
|
You have to put ',inc' in the Adobe Dreamweaver CS4\configuration\Extensions.txt file as well for CS4. Once in the top line and once in the coldfusion line. (after cfc) | |||
|
feedback
|