Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Dreamweaver Php Help
Mavrik
post Nov 9 2004, 11:14 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Joined: 9-November 04
Member No.: 2,198



I've taken over a PHP application and all of the pages are saved as .html. Consequently, Dreamweaver isn't applying the normal syntax coloring to the PHP code as it would if the pages were saved as .php.

Has anyone encountered this or know how I might get Dreamweaver to recognize the PHP without having to change the file extentions to .php?

Much appreciated!
Go to the top of the page
 
+Quote Post
MacFly
post Nov 10 2004, 08:31 AM
Post #2


Newbie [Level 2]
**

Group: Members
Posts: 36
Joined: 9-November 04
Member No.: 2,202



The whole point of syntax colouring is to be able to differenciate. Why would you want php syntax colouring with HTML. To make the site compliant for dreamweaver make all pages .php. Dreamweaver should update links accordingly but if not the use the links sitewide option later. Tag the php code with <?php ?>
to seperate it from the HTML and Dreamweaver will colour both syntax correctly.

Sounds like the php application is using HTML templates and should be so easy to manage in Dreamweaver. A lot of developers like to keep HTML seperate from the server side code for ease of management. Im afraid if your stuggling with editing a site set out in this way, then you took on a project that is too deep for you.
Go to the top of the page
 
+Quote Post
Mavrik
post Nov 10 2004, 05:06 PM
Post #3


Newbie
*

Group: Members
Posts: 8
Joined: 9-November 04
Member No.: 2,198



I understand the concept of syntax coloring as well as how to use php tags within html. That is not what I'm asking. The files are SAVED with a .html extension, therefore not applying the syntax coloring at all. Simply resaving the files with a .php file extension is not an option as the site was intentionally designed this way.

I'm not struggling nor is the project too deep for me. Perhaps you should read postings more clearly before replying.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Mysql & Php Dreamweaver Setup Newbie(0)


 



- Lo-Fi Version Time is now: 21st August 2008 - 01:30 AM