flat assembler
Message board for the users of flat assembler.

Index > Main > block comment to fasmw


do you want block comment in fasmw?
yews
83%
 83%  [ 15 ]
nou
16%
 16%  [ 3 ]
Total Votes : 18

Author
Thread Post new topic Reply to topic
donkey7



Joined: 31 Jan 2005
Posts: 127
Location: Poland, Malopolska
donkey7 14 May 2005, 19:53
i think block comment (adding to each line an "; ") would be very useful
could someone add it to fasmw?
also scripts will be good (like in qeditor in masm).

ps. sorry for bat english

_________________
Keep coding!
Post 14 May 2005, 19:53
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 14 May 2005, 19:58
Post 14 May 2005, 19:58
View user's profile Send private message Visit poster's website Reply with quote
donkey7



Joined: 31 Jan 2005
Posts: 127
Location: Poland, Malopolska
donkey7 15 May 2005, 07:49
why it is not yet implemented???
features like block-comment (without syntax changing) or scripting (templates with variables, eg. %variable% that can be replaced with proper text when running template) was implemented in qeditor (in masm) long time ago.
Post 15 May 2005, 07:49
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 15 May 2005, 08:46
someone had already made a macro to do block commenting, here is the code:

Code:
;use to comment out source code the easy way
;It's pretty simple, and works kind of like how Pascal comments do.
;So now you could do:
;code:
;-------------------------------------------------------------------
;COMMENT {
;Something here
;Or code not used
;It works!
;}

macro COMMENT [args] {
local useless
macro useless args
}    
Post 15 May 2005, 08:46
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 15 May 2005, 09:12
Oh, I see I misunderstood you, you mean block commenting as a feature of editor, not assembler itself (you should have posted in "IDE Development" forum to avoid such confusion - this is where FASMW's editor is usually discussed).

I suggest you look at Fresh, the FASMW's internal editor was planned to be very simple and perhaps will never have many such features. Though I planned also to add plugin support to it (and then you'd just add block commenting as a plugin), however I still have to dedicate much more time to develop the assembler, that's why editor is updated so rarely.
Anyway when I'm finished with the new assembler features I'm now working on and I finally have some time for the editor, the plugin support is the first planned thing to do.
Post 15 May 2005, 09:12
View user's profile Send private message Visit poster's website Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 16 May 2005, 22:28
madmatt: i think you just modified my code, my code was simpler.
Code:
comment fix macro CommentBlock
comment {
Happyness
}
    

P.S. i know i spelled happyness wrong.

_________________
This calls for... Ultra CRUNCHY Man!
Ta da!! *crunch*
Post 16 May 2005, 22:28
View user's profile Send private message Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius 17 May 2005, 14:25
That works, but IMO we should have a block comment- it makes it easier. ";" is fine for some things but when you have to comment out 30 lines of code (for an arbitrary reason) it takes too long to type ";" on each line. I know from personal experience. I tried adding a block comment to the assembler itself, but that didn't work out very well...
Post 17 May 2005, 14:25
View user's profile Send private message AIM Address Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 17 May 2005, 14:32
Post 17 May 2005, 14:32
View user's profile Send private message Visit poster's website Reply with quote
donkey7



Joined: 31 Jan 2005
Posts: 127
Location: Poland, Malopolska
donkey7 19 May 2005, 20:06
i think that plugin based fasmw ide will completely solve problems like this.
fasmw ide should pass entire text buffer and selection range to the plugin.
this would be the most flexible way to do almost everything.


-----------------
sorry for bad english
Post 19 May 2005, 20:06
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 20 May 2005, 00:22
Actually fasmw will pass the window handles (with fully documented message interfaces) of main window and each edit window to plugin callbacks - I have already designed a very nice plugin interface for fasmw, it's just the implementation that is left to do. Smile
Post 20 May 2005, 00:22
View user's profile Send private message Visit poster's website Reply with quote
donkey7



Joined: 31 Jan 2005
Posts: 127
Location: Poland, Malopolska
donkey7 20 May 2005, 14:19
Ok, I'm waiting.



----------------
Keep coding Wink
Post 20 May 2005, 14:19
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.