Jump to content

Rendering well organized/nice looking code


Guest kilbad

Recommended Posts

Guest kilbad
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

[code]
<div>
          <div>
                    Example
          </div>
</div>
[/code]

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.