Insert Tabs – a handy little bookmarklet
November 20th, 2008, 82
Ever wished you had the ability to tab inside a textarea in your browser? We all have at one point or another: it’d make typing code a whole lot easier. Sure, you can get something like Tabinta, but that requires Firefox, and is a whole extension to install.
A few weeks ago I set out to write a little javascript bookmarklet to solve this problem, and on the whole it was quite successful. It works in all modern browsers (yes, that even includes IE). Here’s the result:
To test the bookmarklet, just click the above button, scroll down to the comment form, and press tab. The tab character (”\t”) should be inserted at your cursor.
And that’s it! You can drag the button into your bookmarks bar to save it. I have it third in the bar, so pressing cmd-3 on any page will run the script, and all textareas on that page will now have the ability to insert tabs.
More later,
-Joe
Tags: characters, insert, javascript, js, script, tab, textarea, useful
February 6th, 2009 at 10:59 pm
Great job. Thanks your.
February 28th, 2009 at 3:38 am
Хороший сайт