flat assembler
Message board for the users of flat assembler.

Index > IDE Development > FASMW: Is it possible to reduce identation size?

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
How?

Thanks
Post 21 Jan 2008, 17:44
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
But where FASMW features that?

To choose my identantion I press the spacebar as many times as I need on the first line, when I finish writing that line by pressing enter the cursor goes to the next line and at the column where the first char of the previous line is located.
Post 21 Jan 2008, 17:48
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
When I press TAB it gives too much space for identation.
But you're right, if I use spaces I can adjust to the right size and the next ENTERs will follow this.
Post 21 Jan 2008, 17:52
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
And even the TAB, it will advance till the column where there is a char in the line above (and if there is a char already then the word is skipped and the same logic is applied again).
Post 21 Jan 2008, 18:04
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Smile Though sometimes I do hope it to be 4 for better granularity. 8 is something I'd do with a mouse Wink I agree this time...
Post 21 Jan 2008, 21:42
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
i don't nest code in assembly anyway, and 8 is muchbetter for label<tab>mnemonics<tab>operands<tab>comment style
Post 22 Jan 2008, 00:24
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 764
Location: Massachusetts, USA
bitshifter
Open ..\ide\edit.inc and find this block of code.
Code:
standard_tab:
   mov        ecx,[caret_position]
   and  ecx,not 111b
   sub  ecx,[caret_position]
   add  ecx,8    
Post 30 Sep 2008, 09:04
View user's profile Send private message 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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.