To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
I'm writing php code in dreamweaver and so long as I use a .php extension the code is diplayed in pretty colours which is easier to work with
As soon as I start using php4 extensions, as required by one of my servers, all the colours go. I can work with .php and rename to .php4 but it's a pain. How can I get Dreamweaver MX to recognise .php4 files as php?
Thanks for the tip. But that doesn't make Dreamweaver any more powerful than it was. Macromedia should've made that part of the program from the beginning.
For some of the less savvy developers (who barely know HTML) they would've been totally lost by this.
__________________
Scripting PHP, one line at a time | My web site
Originally posted by mzanimephp Thanks for the tip. But that doesn't make Dreamweaver any more powerful than it was. Macromedia should've made that part of the program from the beginning.
For some of the less savvy developers (who barely know HTML) they would've been totally lost by this.
Perhaps. But, with much respect, I don't think you can blame the tool because you don't fully understand how to use it to it's potential.
I think the gang at Macromedia did a pretty stand up job on this one.
I agree with you, I think Macromedia did a excellent job on Dreamweaver MX. But I was still nontheless shocked when I noticed that php3 and php4 extensions were not color-coded by default.
I spent aleast an hour trying to find a way to color code them, searching through message boards, the macromedia site, and search engines, etc.
I was quite flustrated.
>>I don't think you can blame the tool because you don't fully understand how to use it to it's potential.
I don't blame the program. I know how to use the program better than most people I know, what I want to know is how you figured this one out.... if your like me, when you hear the word "XML" you shudder.
__________________
Scripting PHP, one line at a time | My web site
Originally posted by mzanimephp But I was still nontheless shocked when I noticed that php3 and php4 extensions were not color-coded by default.
Well php3 is by default, but yes, it is a little odd that php4 isn't.
Quote:
I don't blame the program. I know how to use the program better than most people I know, what I want to know is how you figured this one out.... if your like me, when you hear the word "XML" you shudder.
Well Dreamweaver is all based on templates, essentially every bit of code, and most components of the program are controlled by the program's templates. You can do lots of fun stuff by editing these templates.
For example when you click the Insert Image button, Dreamweaver grabs the code for the image tag from a file and inserts it. By editing that file you can customize what's inserted. The same principle applies to pretty much every element of the program. (Sidenote: Handy for authoring XHTML in previous versions of Dreamweaver).
I stumbled along this fix when I was trying to change the default extension for HTML files to .html from the default .htm (another wierd choice by Macromedia). FYI, in that same file if you change the order of the list for the HTML extensions you can change the default extension.
Lots of the Macromedia software operates much the same, including Fireworks and Flash. Don't be afraid to play around, it's worth it if you can make life easier for yourself, and you can alway reinstall if you screw something up.
Originally posted by mzanimephp Thanks for the tip. But that doesn't make Dreamweaver any more powerful than it was. Macromedia should've made that part of the program from the beginning.
For some of the less savvy developers (who barely know HTML) they would've been totally lost by this.
I just wanted to comment that Dreamweaver isn't built for beginnners. I've been developing for the internet since 1994 and have see more than my share of html / php / cgi etc etc editors.
Macromedia Dreamweaver, in my opinion, stands stronger than any other application out there. It is built around ISO requirements. PHP4 file extension is not a standard, in fact I'm not sure if I have ever even seen someone use this extension for their applications.
The program itself is fully customizable, but that is a feature for advanced users or anyone who can read XML. Possibly dreamweaver should look into developing a beginners or intermediate level development studio, but I think as the applicaiton stands at the moment, with a little bit of research (just like this thread) you can make it do whatever you want. In fact you can almost rewrite the entire application.
I can't think or name many if any other applications that allow you to have that open ended feel. Sometimes dumbing things down and making them easier is counter productive, at least when your target audience are proffesional developers and web designers - not the common web user or part time internet developer.
__________________ www.mw-dnb.com
The Midwests #1 place for all things DnB
Originally posted by mw-dnb PHP4 file extension is not a standard, in fact I'm not sure if I have ever even seen someone use this extension for their applications.
You need to use the php4 ext if you install the PHakt server extention in dreamweaver to allow more than just MySql database support with php. That's the only time i've needed it.
that's the sad thing about people these days... they have to have everything easy... if you're going to program DO NOT try and take the easy way.. (wysiwyg) besides, if you don't understand the code to begin with what the heck are you building webpages for dwmx has won my #1 fav program award cept for it's unreal memory hogging, but, i can live with that with the power it has. from modules to templates that thing owns me! an why would u shudder and xml? it's almost easier to read then html peace
__________________
http://www.originalityisoverrated.com
OIO.com The ability to go beyond original! Check it out!
From the directory containing all the php extensioned files that need converted to php4 extensions...this is what I do and it takes a matter of seconds.
Also, I did not know this many moons ago when I first posted to this thread. But you can easily add new file types inside the DWMX preferences. Just click on:
"Edit" > "Preferences" (select) File Type/Editors
Then add .php3 and .php4 to open in code view, and below, add .php3 and .php4 to be opened primarily with DWMX.
Happy coding.
__________________
Scripting PHP, one line at a time | My web site