|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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
![]() |
|
#7
|
||||
|
||||
|
Quote:
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
__________________
|
|
#8
|
||||
|
||||
|
Quote:
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 |
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
||||
|
||||
|
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. |
|
#11
|
||||
|
||||
|
Quote:
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 |
|
#12
|
||||
|
||||
|
Quote:
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. |
|
#13
|
|||
|
|||
|
Quote:
It doesn't. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Indenting code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|