Jump to content

Need to have Dreamweaver read HTML pages as PHP


Recommended Posts

think this may be similar to the problem Canadiengland is also having.

if I open a page named anything.php, DW8 knows its a PHP file and colors the code appropriatly.

the problem is...

in my new job, all of their pages have .html extensions - even though they are PHP pages.  The server config knows they are PHP despiste the extension but dreamweaver doesn't and therefore, I don't get the neat color coding.

any ideas on how to get Dreamweaver to under stand that my .html files are really .php files with the wrong extensions?
I guess I have to do everything the hard way.

found a hack for this problem.

when dreamweaver loads it includes an xml file located at:
Program Files/Macromedia/Dreamweaver 8/Configuration/DocumentTypes/DocumentTypes.xml

on line 2, I took the "html" extension out of the list of HTML recognized pages in the [i]winfileextensions [/i]list.

then on line 74, I added "html" to the list of recognized extensions for Mysql-PHP

so now when Dreamweaver opens a file ending in .html it assumes it is a PHP file and applies the proper color coding and other features.

hope this helps someone else someday. and if someone knows an easier way to modify the settings - without hacking the config files - please let me know!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.