smerny Posted July 9, 2009 Share Posted July 9, 2009 How can I preformat only the returns? Basically I want a preformat that also word wraps... Link to comment Share on other sites More sharing options...
Ingolme Posted July 10, 2009 Share Posted July 10, 2009 If your page is loading with PHP, you can use the nl2br() function.CSS has the white-space: pre-wrap property, but I'm not sure how many browsers that's compatible with. Link to comment Share on other sites More sharing options...
smerny Posted July 10, 2009 Author Share Posted July 10, 2009 the nl2br() function does exactly what i was looking for, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.