Lost password? | Help

[ advanced search ]

[UserJS] code editor tab like behaviour

Forums » Opera Community » General Opera topics » User JavaScript

Thursday, 28. June 2007, 19:53:22

xErath

javascript guru

avatar

Posts: 6418

Norway

Opera Software

[UserJS] code editor tab like behaviour

Unlike code editors, like any IDE, UltraEdit, Notepad++, regular text editors, and browsers don't have the handy programmer tab behaviour to indent and unindent lines of text.
This small script enables that. Note that tab in textareas will no longer tab to another form control.
You can specify which characters you want to use as padding, like a regular tab \t or 2 white-spaces.
code-editor-tab.js
Have fun.

Friday, 29. June 2007, 04:40:48

GT500

Security Industry

avatar

Posts: 3464

Fighting Malware

Handy script. :wink:

Unfortunately, I think I have another script that's converting tabs to spaces, so I'm going to have to figure out which one it is, and change whatever setting needs to be changed...

Friday, 29. June 2007, 14:31:06

It's probably our community enhancements script, check if it's only here that tabs get converted, or everywhere.

Saturday, 30. June 2007, 01:42:14

GT500

Security Industry

avatar

Posts: 3464

Fighting Malware

Originally posted by BtEO:

It's probably our community enhancements script, check if it's only here that tabs get converted, or everywhere.



The tabs are OK in text areas on my site, so I think it's safe to say that it's the My Opera Community Enhancements script. I kind of figured that it was. I thought I remembered a setting to converting tabs to spaces in the preferences.

Forums » Opera Community » General Opera topics » User JavaScript