User Name
Password
AppleNova Forums » Programmer's Nook »

Prettier HTML Source Code


Register Members List Calendar Search FAQ Posting Guidelines
Prettier HTML Source Code
Thread Tools
drewprops
Space Pirate
 
Join Date: May 2004
Location: Atlanta
 
2005-12-20, 00:05

I've noticed when viewing the source code of websites that I've created using PHP that the tags don't lay out nice and pretty as I'd expect... they run together in one big clump. I'm looking at the source code of other, more accomplished web designers and note that their HTML lays out very nicely. What am I missing...linefeeds? I'm asking instead of experimenting because I'm curious as to what standard practice is. I can provide links to a site that I've made if necessary (I expect that it isn't).

Steve Jobs ate my cat's watermelon.
Captain Drew on Twitter
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2005-12-20, 00:07

Sounds like what you want to do is add a few "\n"s for linebreaks, "\n\n"s for carriage returns and "\t"s for tabs.
  quote
drewprops
Space Pirate
 
Join Date: May 2004
Location: Atlanta
 
2005-12-20, 00:16

crap. of course I do. GAH, I'm so STO0pId. ::hitting head with fists, Chris Farley style::
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2005-12-20, 00:18

You're welcome.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-12-20, 00:20

Quote:
Originally Posted by chucker
Sounds like what you want to do is add a few "\n"s for linebreaks, "\n\n"s for carriage returns and "\t"s for tabs.
Actually it's

\n for a linebreak or linefeed

\r for a carriage return

  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2005-12-20, 00:36

Quote:
Originally Posted by ast3r3x
Actually it's

\n for a linebreak or linefeed

\r for a carriage return

Well, technically, yes. But you wouldn't want to use \r when outputting HTML.
  quote
Posting Rules Navigation
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

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML question... Wickers Programmer's Nook 16 2019-07-29 22:46
Spider Solitaire License pmazer Programmer's Nook 22 2005-12-16 22:23
C++ and the evils of "goto". Your views? scratt Programmer's Nook 34 2005-12-14 01:47
HTML help cyrusmekon Programmer's Nook 22 2005-10-18 06:05
10.3.6 Available in Software Update Moogs Apple Products 86 2004-11-20 15:12


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 13:25.


Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2023, AppleNova