thewooleymammoth Posted March 25, 2009 Share Posted March 25, 2009 I am creating an online page editor and i have the code output to a <textarea></textarea> i also have another div with a certain amount of line numbers, the problem is when you type a long string textarea drops down text to take up its own line, heres an example as if what was in the code tags were instead the <textarea>: something something longstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring... i need it to stay on the same line ex: something something longstringlongstringlongstringlongstringlongstringlongstringlongstring... and i cant figure out a way to have it do that, through html css or js, any ideas appreciated Quote Link to comment https://forums.phpfreaks.com/topic/151009-solved-textarea-wrapping-problem/ Share on other sites More sharing options...
thewooleymammoth Posted March 25, 2009 Author Share Posted March 25, 2009 i should explain a little more i suppose, the line numbers line up vertically like they would in common code iditors, the problem is that when <textarea> drops the line down, php does not read that as an extra line and it throws off the line numbers, so when php tells you you have an error on this line and you go to look for it, it will be a number of lines down. Quote Link to comment https://forums.phpfreaks.com/topic/151009-solved-textarea-wrapping-problem/#findComment-793351 Share on other sites More sharing options...
thewooleymammoth Posted March 25, 2009 Author Share Posted March 25, 2009 lol ok well after a lot of searching <textarea wrap='off'> works just fine for ie and firefox. incase anyone ever searches for this again Quote Link to comment https://forums.phpfreaks.com/topic/151009-solved-textarea-wrapping-problem/#findComment-793368 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.