Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Tabbable Textarea Plus

When enabled, you can use tabs in textarea, to enable it, just press Ctrl+Alt+T.

Tabbable Textarea Plus is a user script that allows you to press Tab on textareas, with some special features, good for editing codes.

  • If you select more than one line, and press the tab key, it will indent the selected lines.
  • Auto-indentation, which means, when you press enter, if you have any whitespaces on the line you press enter, it will be copied to the new line. So you don’t have to press tab each time you start a new line.
    • These symbols will be copied also:
      • > (blockquote)
      • // (c-style comments)
      • # (shell-style comments)
      • ; (ini-style comments)
      • - (list-items)

And here is the demo:

Updated 2007-05-08: Made the toggle persistant. Thanks to Richard Bronosky.

Updated 2007-05-10: You can now right click the greasemonkey icon on the status bar and enable and disable the TTP in the User Script Commands menu..






May 7, 2007
the DtTvB Script's author

OK, the script has been updated, tbenabled will now persist.

Tomorrow I will implement the menu command. Many thanks for the link. ;)

 
May 3, 2007
Richard Bron... Scriptwright

This is awesome!!!! Only one comment though? Come on folks, give this guys some praise!

Now, if I could make a few suggestions:
1. Make the tbenabled variable persist by using GM_setValue and GM_getValue
2. Add a function via GM_registerMenuCommand just for good measure.
(see: http://greasemonkey.mozdev.org/authoring.html )

I would also like to add setting the font to "monospace", but that may be outside of the context of this script. I for one always want to see monospace if I'm insert tabs (almost always blogging code).

Thanks for the script! I will email you any changes I make.

 
Mar 8, 2007
iannnnn User

สุดยอดครับ มีประโยชน์มาก
Big Thanks!

You could comment on this script if you were logged in.