HighDots Forums  

PHP source formatting

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss PHP source formatting in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
macsym
 
Posts: n/a

Default PHP source formatting - 07-15-2004 , 07:01 PM






Hi everybody,

I am using Dreamweaver to code in PHP but I have a problem with the "Apply
source formatting" function in the "commands" menu. Everytime I run the source
formatting, my entire PHP code is messed up. It doesn't format it in a clean
just like Flash can auto-format ActionScript code.

Do you know how I could get a nice source formatting with PHP?

Thanks in advance for any help,

Macsym


Reply With Quote
  #2  
Old   
Lawrence TMM
 
Posts: n/a

Default Re: PHP source formatting - 07-15-2004 , 07:51 PM






Macsym

I've always found this function to be a bit of a roll of the dice. Sometimes
you like what you get... Sometimes you don't.

You might want to try selecting all you code then using Shift > Tab to move
all the code over so there is no indentation at all, then run source
formatting. This seems to produce the best results. Be sure to back up you
file first.

If this is no good, there's always the tried and true way... By hand, and
set Dreamweaver to leave your code alone.

--
Lawrence - Team Macromedia
email: lawrence at cartweaver.com

Cartweaver - Shopping Cart Solution for DreamweaverMX
http://www.cartweaver.com
news://support.cartweaver.com/cartweaver





"macsym" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi everybody,

I am using Dreamweaver to code in PHP but I have a problem with the
"Apply
source formatting" function in the "commands" menu. Everytime I run the
source
formatting, my entire PHP code is messed up. It doesn't format it in a
clean
just like Flash can auto-format ActionScript code.

Do you know how I could get a nice source formatting with PHP?

Thanks in advance for any help,

Macsym




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



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