Code I'm using is:
CODE
<div style="overflow: auto; width: 500px;">
(user inputted stuff here)
</div>
(user inputted stuff here)
</div>
The problem is if the user inputs something like this:
QUOTE
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
With no spaces and or breaks it overflows - that's fine and dandy, that's how I want it.
BUT...
If the user inputs something like this:
QUOTE
Hello my name is Jack in the Box and I have a very important story to tell. It's a pretty cool story, and I love it so much. It's got just the perfect amount of violence, crime, love and drama in it - it's the best story ever! Hello my name is Jack in the Box and I have a very important story to tell. It's a pretty cool story, and I love it so much. It's got just the perfect amount of violence, crime, love and drama in it - it's the best story ever!
Note that there are no breaks in this - just spaces. The user never hit enter/return one time. I want it (being ONE LINE in a code editor that doesn't have word wrap on) to OVERFLOW to the right, not word wrap down.
It seems the overflow property only works for things that are too big (ie one line with no spaces, or a huge picture, etc). Is there a way to basically get
the div to do this:

Like a text editor?