flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Feedback > tabs

Author
Thread Post new topic Reply to topic
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! Evil or Very Mad Arrow


is there a way to have normal tab behaviour? Very Happy

or can someone forward this request to the developers

of the forum php Exclamation
Post 28 Jan 2011, 21:52
View user's profile Send private message Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
just use some text editor, then copy, paste to the board.

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 29 Jan 2011, 02:39
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1121
Location: NC, USA
I'm pretty sure it's a browser problem, not a BB problem.
Post 29 Jan 2011, 05:03
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2149
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* Sad )

*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



Post 01 Feb 2011, 19:54
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Coty



Joined: 17 May 2010
Posts: 505
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 codeso I deleted ityor welcom
        BTW this is a coment
  KTHXBYE



_________________
http://codercat.info/
Post 01 Feb 2011, 21:32
View user's profile Send private message Send e-mail Visit poster's website AIM Address Reply with quote
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* Sad )




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 Confused
Post 06 Feb 2011, 22:00
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2149
Location: Estonia
Post 07 Feb 2011, 07:15
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
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;})

Post 07 Feb 2011, 07:41
View user's profile Send private message Visit poster's website Yahoo Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

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.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2013, Tomasz Grysztar.