|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
wordwrap
im thinking it might be a good idea to apply wordwrap to the forums, as occasionally you get those big posts that distort the whole thing
|
|
#2
|
|||
|
|||
|
RE: wordwrap
Wordwrap is generally used. What distorts is when code is displayed. When php highlights code, it turns all spaces into 's. That causes it not to wrap....
|
|
#3
|
|||
|
|||
|
RE: wordwrap
maybe.. a fixed sentence length before forcing it to break? i did that with a tagboard type thing once, not sure if it'd work here. *shrugs*
|
|
#4
|
|||
|
|||
|
RE: wordwrap
duh i just realized that's what wordwrap does..
|
|
#5
|
|||
|
|||
|
RE: wordwrap
we (matt?) could do a "nbsp-ward-wrap" or force code lines to fixed maximum width of ie 80 chars...
|
|
#6
|
|||
|
|||
|
RE: wordwrap
Yeah, we could force lines to break at a certain width, but then they may break at places you we wouldn't like it....
Let me give something a try real quick...I actually am using output buffering for the php code in the forums, so it really shouldn't be that hard just to convert  's to regular spaces... Hmm..more thought and that could cause a problem as it would kill all the code indentation....that's the reason for the nbsp's to start with...let me try some regular expressions to change only nbsp's surrounded by alpha characters.... |
|
#7
|
|||
|
|||
|
RE: wordwrap
Hmmm..can't seem to find a post that isn't wrapping...can someone point me to one?
|
|
#9
|
|||
|
|||
|
RE: wordwrap
Little bit better?
|
|
#10
|
|||
|
|||
|
RE: wordwrap
great!
but how did u do it? i can't figure it out by looking at the html source ;) |
|
#11
|
|||
|
|||
|
RE: wordwrap
Just changed any single  's to a regular space. A little preg_replace that looks for an alpha character or " or > followed by and then followed by an alpha character and replaced the with a space.
|
|
#12
|
|||
|
|||
|
RE: wordwrap
http://codewalkers.com/forum/index.php?action=displaythread&forum=phpcoding&id=822&realm=default
again? back from the dead? ;) |
|
#13
|
|||
|
|||
|
RE: wordwrap
That thread shows fine to me...maybe you are seeing a cached version?
|
|
#14
|
|||
|
|||
|
RE: wordwrap
no! i checked!
i keep my favorites bar in ie, and sidebar in mozilla to be so big, that the main browser area is around 800px wide. now i checked both in ie and mozilla and opera, and it is a little wider than that. it is not too bad, but i make sites to be visible on 800*600 screen, and i like other sites to be also... |
![]() |
| Viewing: Codewalkers Forums > Forum Information > Suggestions & Feedback > wordwrap |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|