| Author |
| Thread |
 |
|
lazer1
Joined: 24 Jan 2006
Posts: 185
|
tabs
Hi,
as a programmer I like using the tab key for spacing
code. However with the forum editor, tab has an irritating effect!
is there a way to have normal tab behaviour?
or can someone forward this request to the developers
of the forum php 
|
28 Jan 2011, 21:52 |
|
ass0
Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
|
just use some text editor, then copy, paste to the board.
_________________
Nombre: Aquiles Castro.
Location2: about:robots
|
29 Jan 2011, 02:39 |
|
Tyler
Joined: 19 Nov 2009
Posts: 1101
Location: NC, USA
|
I'm pretty sure it's a browser problem, not a BB problem.
|
29 Jan 2011, 05:03 |
|
Madis731
Joined: 25 Sep 2003
Posts: 2138
Location: Estonia
|
ass0 is correct here. Usually where you want tabs is in your assembly (or any code) and because this textbox here is variable-width and tabs are visually apparent only when writing in fixed-width fonts. What I'm trying to say is that your tab-browser-misbehaviour is not the only problem you're facing.
(Btw, tab can be overridden to work the way you like, but I hate it about as much as that Adobe's Flash stealing all my focuses*  )
*http://en.wikipedia.org/wiki/All_your_base_are_belong_to_us
PS. I love LOLCODE:
Code: |
|
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
AWSUM THX
VISIBLE FILE
O NOES
INVISIBLE "ERROR!"
KTHXBYE
|
|
|
01 Feb 2011, 19:54 |
|
Coty
Joined: 17 May 2010
Posts: 468
Location: ␀
|
To fix this problem you would have to write a modification that when you press TAB it did not go to the next feild.
@Madis:
Code: |
|
HAI
BTW u forgot 2 comment u r code, so I deleted it, yor welcom
BTW this is a coment
KTHXBYE
|
|
|
01 Feb 2011, 21:32 |
|
lazer1
Joined: 24 Jan 2006
Posts: 185
|
Madis731 wrote: |
ass0 is correct here. Usually where you want tabs is in your assembly (or any code) and because this textbox here is variable-width and tabs are visually apparent only when writing in fixed-width fonts. What I'm trying to say is that your tab-browser-misbehaviour is not the only problem you're facing.
(Btw, tab can be overridden to work the way you like, but I hate it about as much as that Adobe's Flash stealing all my focuses*  )
|
|
I use Firefox on XP, any hints how to make tab function the way
I want?
it would be nice if control characters were kept to the alt- and
F1 to F12 and other unusual keys.
the whole point of tab is for text formatting, I think its delinquent
to reassign tab to other uses. There are 12 function keys at the top
of a keyboard,
combined with alt that is 24 keys 
|
06 Feb 2011, 22:00 |
|
Madis731
Joined: 25 Sep 2003
Posts: 2138
Location: Estonia
|
|
07 Feb 2011, 07:15 |
|
SFeLi
Joined: 03 Nov 2004
Posts: 138
Location: Severodvinsk, Russia
|
Madis731, tabinta cannot tab selection, it only inserts \t.
Btw, here's my bookmarklet. This terrible code was written years ago, and it works only on Gecko browsers. However it can be fixed and easily converted into the userscript:
Code: |
|
javascript:void(document.getElementsByTagName('textarea')[0].onkeypress=function(e){if(e.keyCode!=9||e.ctrlKey||e.altKey)return true;var tabWidth=8,t=e.target,fwd=!e.shiftKey,txt=t.value,tmp,pad=(new Array(tabWidth+1)).join('\x20'),i,r,s1=t.selectionStart,s1s=txt.lastIndexOf('\n',s1-1)+1,s2=t.selectionEnd,s2e=txt.indexOf('\n',s2);s2e=(s2e==-1)?txt.length:s2e;if(s1==s2){if(fwd)pad=pad.substr((s1-s1s)%tabWidth),txt=txt.substr(0,s1)+pad+txt.substr(s2),s1=s2+=pad.length;else s1=((s1-s1s+tabWidth-1)&~(tabWidth-1))-tabWidth,s2=s1=s1s+((s1>=0)?s1:0);}else{tmp=txt.substring(s1s,s2e).split(/\n/);for(i=0;i<tmp.length;++i)if(fwd){tmp[i]=pad+tmp[i];}else{if((r=tmp[i].match(/^\x20+/))!=null&&r[0].length>=tabWidth)tmp[i]=tmp[i].substr(tabWidth);}r=tmp.join('\n');s1=s1s,s2=s1+r.length;txt=txt.substr(0,s1s)+r+txt.substr(s2e);}t.value=txt;t.selectionStart=s1;t.selectionEnd=s2;return false;})
|
|
|
07 Feb 2011, 07:41 |
|
|
|
Forum Rules:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|
|
Powered by phpBB © 2001-2005 phpBB Group.
|