The Little Guy Posted December 18, 2006 Share Posted December 18, 2006 Does anyone know how to tab in in a textarea? Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/ Share on other sites More sharing options...
Daniel0 Posted December 18, 2006 Share Posted December 18, 2006 As far as I know you can't. Either write it in an external editor and copy it to the textarea, or copy a tab and paste each time you need one. The first solution is the easiest one. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-143993 Share on other sites More sharing options...
steelmanronald06 Posted December 18, 2006 Share Posted December 18, 2006 or use bbcode that puts in spaces when clicked :) Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144034 Share on other sites More sharing options...
Daniel0 Posted December 18, 2006 Share Posted December 18, 2006 I think he means in all textareas. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144048 Share on other sites More sharing options...
ober Posted December 19, 2006 Share Posted December 19, 2006 .... bbcode could be used in all areas if you have your bbcode set to parse the output.Another way to do it would be to hijack the tab key with JS. Detect the keypress and input 4 or 5 spaces. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144076 Share on other sites More sharing options...
Daniel0 Posted December 19, 2006 Share Posted December 19, 2006 Yeah well, it depends on what he means. I read it as he wants to eg use bbcode in the textarea I'm using now. Here he couldn't just make a bbcode or hijack it with javascript. But if it is one in his application he can of course. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144281 Share on other sites More sharing options...
The Little Guy Posted December 19, 2006 Author Share Posted December 19, 2006 I'm talking in all form textareas, for any form on the web, not just mine. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144301 Share on other sites More sharing options...
ober Posted December 19, 2006 Share Posted December 19, 2006 That would have to be custom JS that you use in your browser (Opera offers this option and I think FF does as well).Although I'm not sure why you would want this functionality as it takes away from the default use of the tab key in a browser. It would be a little more difficult to limit it to textareas. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144411 Share on other sites More sharing options...
The Little Guy Posted December 19, 2006 Author Share Posted December 19, 2006 well... could you intergrad it into this form? mainly I want to use it in this forum when showing example code to someone to help them out, when I write it off the top of my head.I FF does support the tab funcion, would that that tab in the text fields too? Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144744 Share on other sites More sharing options...
ober Posted December 19, 2006 Share Posted December 19, 2006 Umm... no. You'll have to fight like the rest of the users with spaces. People are too used to tabbing around the interface to include a feature like that.I don't know how FF would handle it. Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144752 Share on other sites More sharing options...
steelmanronald06 Posted December 19, 2006 Share Posted December 19, 2006 How hard is it to hit the space bar 5 times? and then copy those five spaces and use CTRL+V everytime you need it...that would equal tab :) Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144760 Share on other sites More sharing options...
The Little Guy Posted December 19, 2006 Author Share Posted December 19, 2006 Oh its very hard ;)Well... Thank you guys for the help Quote Link to comment https://forums.phpfreaks.com/topic/31158-tab-in-textarea/#findComment-144761 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.