Jump to content


Rendering well organized/nice looking code


  • Please log in to reply
2 replies to this topic

#1 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 11 August 2006 - 10:10 PM

I am working on making a php/mysql address book, and I have a question.  I am one of those people that likes my code to be well organized.. for example, with the use of equal indenting with each layer of nested tags in html

<div>
          <div>
                    Example
          </div>
</div>

So, with my address book, I have accomplished rendering well organized html code by using "\n" for line breaks in my echos, as well as adding extra spaces for the indents.  However, this is my question, having to add all those extra spaces in my echos for the indents is cumbersome and distracting when I am trying to read through the script..  Is there any command that will render a Tab or several spaces that I can repeat a few times to accomplish the same thing?

thanks in advance!

Brendan

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 11 August 2006 - 10:14 PM

"\t" = tab

#3 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 11 August 2006 - 10:15 PM

thanks a ton!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users