micah1701 Posted January 9, 2007 Share Posted January 9, 2007 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? Link to comment https://forums.phpfreaks.com/topic/33483-need-to-have-dreamweaver-read-html-pages-as-php/ Share on other sites More sharing options...
micah1701 Posted January 10, 2007 Author Share Posted January 10, 2007 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.xmlon 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-PHPso 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! Link to comment https://forums.phpfreaks.com/topic/33483-need-to-have-dreamweaver-read-html-pages-as-php/#findComment-157362 Share on other sites More sharing options...
weknowtheworld Posted January 10, 2007 Share Posted January 10, 2007 I think you have to wait for new Dreamweaver to come in market with such intelligence.. Link to comment https://forums.phpfreaks.com/topic/33483-need-to-have-dreamweaver-read-html-pages-as-php/#findComment-157500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.