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
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-16-2003, 06:38 AM   #1
happyme
Senior Member
 
Join Date: Oct 2002
Posts: 118
colours in dreamweaver MX

Hi there,

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?

Julia
happyme is offline   Reply With Quote
Old 01-16-2003, 07:53 PM   #2
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
I don't think thats possible... you may have discovered something that they left out. I have the 6.1 upgrade and this issue still isn't fixed.

It seems to interpret .php3 and .php4 extensions as regular text.

Sorry.
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 01-24-2003, 05:50 PM   #3
gecko498
Junior Member
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 29
Actually, Dreamweaver is far more powerful than most know.

To see the pretty colours you need to define php4 as a PHP extension.

Open c:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes\MMDocumentTypes.xml

Look for winfileextension="php,php3" or macfileextension="php,php3" if you're on a mac and simply add php4 to the list so you have:

winfileextension="php,php3,php4"

Save it, and restart Dreamweaver and you should be good to go.

Cheers
__________________
Thodyconsulting.com
gecko498 is offline   Reply With Quote
Old 01-25-2003, 12:12 AM   #4
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Red face

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
mzanimephp is offline   Reply With Quote
Old 01-25-2003, 12:54 AM   #5
gecko498
Junior Member
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 29
Quote:
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.
__________________
Thodyconsulting.com
gecko498 is offline   Reply With Quote
Old 01-25-2003, 01:09 AM   #6
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
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
mzanimephp is offline   Reply With Quote
Old 01-25-2003, 01:25 AM   #7
gecko498
Junior Member
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 29
Quote:
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.

Besides, it's fun
__________________
Thodyconsulting.com
gecko498 is offline   Reply With Quote
Old 01-25-2003, 01:29 AM   #8
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Thats incredible, thanks!
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 01-25-2003, 01:37 AM   #9
gecko498
Junior Member
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 29
Hey, no problem
__________________
Thodyconsulting.com
gecko498 is offline   Reply With Quote
Old 01-27-2003, 08:24 PM   #10
mw-dnb
Member
 
Join Date: Sep 2002
Location: St. Louis
Posts: 52
Quote:
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

Last edited by mw-dnb; 01-27-2003 at 08:27 PM.
mw-dnb is offline   Reply With Quote
Old 01-27-2003, 10:06 PM   #11
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Thumbs up

Aye. But some tend to stay in WYSIWYG view more than they should.
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 05-08-2003, 02:49 AM   #12
yoyo
Junior Member
 
Join Date: May 2003
Posts: 2
Quote:
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.
yoyo is offline   Reply With Quote
Old 05-08-2003, 03:49 AM   #13
FrozNic
0100101100100110
 
FrozNic's Avatar
 
Join Date: Apr 2003
Location: http://www.originalityisoverrated.com
Posts: 330
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!
FrozNic is offline   Reply With Quote
Old 06-25-2003, 03:01 PM   #14
Boudga
Member
 
Join Date: Jun 2003
Posts: 32
you can always drop out to the shell and:

shell>ren *.php *.php4

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.
Boudga is offline   Reply With Quote
Old 06-25-2003, 04:17 PM   #15
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
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
mzanimephp is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:19 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.