Page 1 of 1

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

Posted: Fri Jun 15, 2007 9:06 am
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!

Posted: Fri Jun 15, 2007 9:17 am
by feyd
wordwrap()?

There's also the scrolling container method used by

Code: Select all

we have here.

Posted: Fri Jun 15, 2007 10:04 am
by Luke
perfect! Image