PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 4th, 2006, 05:29 PM
spilo101's Avatar
spilo101 spilo101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 496 spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 20 h 7 m 37 sec
Reputation Power: 27
Question Indenting code

Greetings everyone, thanks for reading my thread.

Does any of you use Dreamweaver as editing software for php, and if yes, can you please tell me how to get it to automaticaly indent the php code? I have settings correctly in preferences, but it still wount indent the php code.

Thank you for your help.
__________________
I enjoy my daily dose of sql injection

Last edited by spilo101 : September 4th, 2006 at 05:31 PM.

Reply With Quote
  #2  
Old September 4th, 2006, 06:09 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 8
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
i use dreamweaver, there is no auto indent feature that i know of, you just have to indent it yourself. thats what i do anyway.

later

Reply With Quote
  #3  
Old September 4th, 2006, 09:33 PM
spilo101's Avatar
spilo101 spilo101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 496 spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 20 h 7 m 37 sec
Reputation Power: 27
If you go to Edit >> Preferences, there's scripts section and you can set the indentation.. but it simply does not work...


If anyone has a solution, please give us a shout.


Thanks.

Reply With Quote
  #4  
Old September 4th, 2006, 09:53 PM
lanqy's Avatar
lanqy lanqy is offline
unDeterMineEd('yo')
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: in a box (la)
Posts: 176 lanqy User rank is Sergeant (500 - 2000 Reputation Level)lanqy User rank is Sergeant (500 - 2000 Reputation Level)lanqy User rank is Sergeant (500 - 2000 Reputation Level)lanqy User rank is Sergeant (500 - 2000 Reputation Level)lanqy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 5 h 31 m 38 sec
Reputation Power: 18
there is no way to indent in HTML, nor can you do this in PHP.

don't try to think HTML is a way of displaying a word-precessor document. be creative, use a spacer gif or something to make your indents.

Reply With Quote
  #5  
Old September 4th, 2006, 10:15 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 8
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
spilo101, do you mean indenting your code to keep it clean? or how to indent your output?

if you mean your code, i just tab it out myself. even if dreamweaver had somthing that auto tabbed it for me i wouldnt trust it to be rewriting my code.

later

Reply With Quote
  #6  
Old September 4th, 2006, 10:57 PM
Arty Ziff's Avatar
Arty Ziff Arty Ziff is online now
Fresh Squeezed Orange Juice
Click here for more information.
 
Join Date: Apr 2005
Posts: 4,565 Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 6 h 12 m 59 sec
Reputation Power: 2292
In many editors you can set the number of spaces that the TAB key indents the code, but of course, you still have to use the TAB to tell it where you want to indent

Reply With Quote
  #7  
Old September 4th, 2006, 11:08 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 5 h 56 m 41 sec
Reputation Power: 1345
Facebook
Quote:
use a spacer gif or something to make your indents.


Dear god man, it's 2006 - anyone using spacer.gifs should be shot. This is what CSS is for.

As for auto-indenting your *code* - most real text editors (emacs, vim, jed, eclipse, textmate, scite - just the ones I can think of off the top of my head that do ) will automate code reformatting/indentation for you.

--Simon
Comments on this post
adorablepuppy agrees: jed rulz.
Noodles23 agrees!

Reply With Quote
  #8  
Old September 4th, 2006, 11:34 PM
misterdanny's Avatar
misterdanny misterdanny is offline
Null Pointer Exception
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Mar 2006
Location: america
Posts: 3,094 misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)  Folding Points: 326 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 Days 6 h 33 m 32 sec
Reputation Power: 1108
Quote:
Originally Posted by A3M0N_
spilo101, do you mean indenting your code to keep it clean? or how to indent your output?

if you mean your code, i just tab it out myself. even if dreamweaver had somthing that auto tabbed it for me i wouldnt trust it to be rewriting my code.

later


i used to be like that. until one day.. i evolved.... actualy i started using context and now i can never use a non auto indenting editor again

auto indenting is the bext invention ever i think, that and syntax highlighting. the trick to working good with an autoindenting text editor is to figure out mentally whats going to casue it to autoindent and where would it put it when it happens. then you can stop thinking about making sure your { and } line up and make sure the stuff inbatween them is right.

in all honesty im just rambling i probally shoudlnt even be posting, i just have that rambling mood right now
__________________
I love the blackberry

Reply With Quote
  #9  
Old September 4th, 2006, 11:44 PM
Arty Ziff's Avatar
Arty Ziff Arty Ziff is online now
Fresh Squeezed Orange Juice
Click here for more information.
 
Join Date: Apr 2005
Posts: 4,565 Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level)Arty Ziff User rank is General 20th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 6 h 12 m 59 sec
Reputation Power: 2292
Quote:
Originally Posted by SimonGreenhill
Dear god man, it's 2006 - anyone using spacer.gifs should be shot. This is what CSS is for.

--Simon
Reminds me of NetObjects Fusion WYSIWYG editor of the mid-90's. Used huge HUGE numbers of one pixel spacer gifs to position things on a page... Produced source code that was just amazing to look at...

Reply With Quote
  #10  
Old September 5th, 2006, 10:18 AM
spilo101's Avatar
spilo101 spilo101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 496 spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level)spilo101 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 20 h 7 m 37 sec
Reputation Power: 27
Although I deeply appreciate everyone's involvment in this thread, he issue has not quite been addressed yet.

If anyone knows how to make Dreamweaver autoindent the php code, please spread the wisdom.

Thanks.

Reply With Quote
  #11  
Old September 5th, 2006, 10:23 AM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 4,884 b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level)b3n User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 1 Week 5 Days 5 h 16 m 49 sec
Reputation Power: 1256
Facebook Orkut
Quote:
Originally Posted by misterdanny
...then you can stop thinking about making sure your { and } line up and make sure the stuff inbatween them is right...


Zend Studio highlights the relevant curly braces if you put the cursor next to one of them
__________________
.
:: Web Design Feeds :: Web Dev Feeds :: CheatSheets :: PHP :: MySQL :: 13 Moon FB App.

"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks


"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra

Reply With Quote
  #12  
Old September 5th, 2006, 02:37 PM
misterdanny's Avatar
misterdanny misterdanny is offline
Null Pointer Exception
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Mar 2006
Location: america
Posts: 3,094 misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)misterdanny User rank is General 2nd Grade (Above 100000 Reputation Level)  Folding Points: 326 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 Days 6 h 33 m 32 sec
Reputation Power: 1108
Quote:
Originally Posted by b3n
Zend Studio highlights the relevant curly braces if you put the cursor next to one of them


so does context.

context i think is the best editor just becasue it's so basic, theres no extra features in it, its just a texteditor with syuntax highlighting and you can group files togetor so they show in a list on the side (for when your working with multiple files in one project)

i heard zend has cool debugging stuff in it i plan to try it out sometime. im still a hardcore context fan.

Reply With Quote
  #13  
Old September 5th, 2006, 06:33 PM
ecsyle ecsyle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Reno, NV
Posts: 229 ecsyle User rank is Sergeant (500 - 2000 Reputation Level)ecsyle User rank is Sergeant (500 - 2000 Reputation Level)ecsyle User rank is Sergeant (500 - 2000 Reputation Level)ecsyle User rank is Sergeant (500 - 2000 Reputation Level)ecsyle User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 12 h 20 m 39 sec
Reputation Power: 13
Send a message via AIM to ecsyle Send a message via MSN to ecsyle Send a message via Yahoo to ecsyle
Quote:
Originally Posted by spilo101
Although I deeply appreciate everyone's involvment in this thread, he issue has not quite been addressed yet.

If anyone knows how to make Dreamweaver autoindent the php code, please spread the wisdom.

Thanks.

It doesn't.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Indenting code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT