Jul 26, 2008

Dreamweaver Php Help

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Dreamweaver Php Help

Mavrik
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!

Reply

MacFly
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.

Reply

Mavrik
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : dreamweaver php

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



Looking for dreamweaver, php

Searching Video's for dreamweaver, php
advertisement



Dreamweaver Php Help



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE