flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Added some cool features in FasmW IDE

Author
Thread Post new topic Reply to topic
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 29 Nov 2004, 19:35
I introduced a Ctrl+Up/Down for scroll up/down (without moving the cursor) of 1 unit and Ctrl+Shift+Up/Down for the same but for 1 page.

Also Ctrl+Mousewheel scrolls now also up/down of 1 page (inspired by Delphi 6 IDE)

But most proud am I of the "toggle comment lines" feature which allows to toggle comments of all selected lines at the selected position. Here toggle means "insert ';' char into line if not already present, and delete char if it already were a ';' char". This, I think, is very a handy feature!

Has anyone an opinion about this? I give it the shortcut keys

Ctrl+VK_DECIMAL since unfortunately Ctrl+';' doesn't work Sad
(must be Win32 message handling)

Take a look at the provided "ASMEDIT.INC" file (in main FasmW's directory)
(search for toggle_comment and mousewheel)

Please notice me if any bugs

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 29 Nov 2004, 19:35
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 07 Dec 2004, 16:32
okasy, I discovered a bug in my "toggle comment" feature, but I atached a fixed version of asmedit.inc. The bug occured if some larger amount of longer lines were comment toggled. (has something to do with 248+8 byte editor structure). I simple used caret_line instead of caret_line_number for all performed row comparisions what resulted in wrong comparisions sometime because next(caret_line) is not always > current(caret_line),
but next(caret_line) > current(caret_line) works.

I also changed the shortcut key from Ctrl+CK_DECIMAL to Ctrl+T because Ctrl+VK_DECIMAL only works if Num-lock is activated, while Ctrl+T do always work.

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 07 Dec 2004, 16:32
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 07 Dec 2004, 16:38
Another thing: wouldn't it be wise to rather introduce block-comments into fasm instead of using a "toggle comment" feature? Like in PASCAL or C language!

But the problem is, that I have no idea what kind of special character Fasm should use since most ones are already used by other syntax elements.

But reserved words for comments tend to be too long. Maybe something like ";_" and "_;" would go? (looks a bit strange)

What's your opinion, Privalov?
Post 07 Dec 2004, 16:38
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 07 Dec 2004, 17:03
/* comment ? */
Post 07 Dec 2004, 17:03
View user's profile Send private message Visit poster's website Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 07 Dec 2004, 17:05
perhaps? I don't know so exactly. I guess we should start a poll for it?!

Matrix, do you think the "paste bug" in FasmW is critical? It crashes under certain circumstances. Lokk at "IDE Development > Bug in FasmW's paste"
Post 07 Dec 2004, 17:05
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 07 Dec 2004, 17:08
go ahead,
i recomend /* coment block */ from C
cause macros use {} from pascal there is an alterative:
comment {i 'm a comment block}
Post 07 Dec 2004, 17:08
View user's profile Send private message Visit poster's website Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 07 Dec 2004, 17:14
okay, I will post a poll in the main-section now
Post 07 Dec 2004, 17:14
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 16 Dec 2004, 18:24
I found another bug. It occurs if a comment is toggled on a single line with
an empty selection. The IDE would crash in this case. Luckily, this bug
is fixed now in the attached version of "ASMEDIT.INC".

I simply wrote
Code:
ja      toggle comment    

somewhere instead of
Code:
jae     toggle_comment    


Description: A new, bug fixed version of the Flat Assembler editor Win32 interface file with "toggle comments" feature
Download
Filename: ASMEDIT.INC
Filesize: 46.25 KB
Downloaded: 655 Time(s)


_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 16 Dec 2004, 18:24
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.