Displaying php on blog, how should I deal with long lines?

It doesn't matter if you do all the error checking in the world, or if you have the most beautiful graphics, if your site or application design isn't usable, it's not going to do well. Get input and advice on usability and user interface issues here.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Displaying php on blog, how should I deal with long lines?

Post by Luke »

OK, so I have a blog now, and it's a static 800px-wide. When I display html/php/code such as in the this post, the lines push out further than they're supposed to. I've seen some people's blogs that actually break the long lines when they run to the right end of the page. My question is:

Is there an automated way to do that, or do I just have to break them myself? I've also seen on the blogs who break the code up a certain character is usually used at the end of the line to let readers know there was a break (looks like the arrow on the enter key). What character is that??

thanks guys!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

wordwrap()?

There's also the scrolling container method used by

Code: Select all

we have here.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

perfect! Image
Post Reply