[Gambas-user] comments

Dimitris Anogiatis dosida at ...626...
Tue Jul 14 08:55:05 CEST 2009


Sorry if I'm butting in the conversation, but what if instead of

/*

don't parse this

*/

you add another paste function on the IDE called "Paste As Comments" and
assign it a rather unique keyboard
shortcut like  Ctrl + Alt + \ and paste whatever is in the clipboard in text
format, as comments (with the ' in front
of them)?

It might be a poor substitute but something like /* */ but IMHO, it beats
doing all the extra work for just the block
comments.

Regards
Dimitris


On Tue, Jul 14, 2009 at 12:28 AM, Ron <ron at ...1740...> wrote:

> Stephen Bungay wrote:
> > I made up a standard comment block a long time ago as a text file, I
> > simply paste it in and modify/add to it as needed. Yes you have to put
> > the ' at the start of every new comment line, but IMHO that is no big
> deal.
> >
> > Steve.
> >
> >
>
> Yeah but the the damage is already done then.
> What I was trying to explain was, if you paste a text like this into the
> editor:
>
> ---
> This is some text with debug information
> and is just used to explain my point.
> And there should be a bunch more lines below this one with preserved
> words in them.
> ---
>
> It becomes this, even before you have a chance to comment it:
>
> ---
> This IS some text WITH DEBUG information
> AND IS just used TO explain my point.
> AND there should be a bunch more lines below this one WITH preserved
> words IN them.
> ---
>
> Even if you arrange enough blank lines with a ' in front before you
> paste it over them. You get this:
>
> ---
> 'This is some text with debug information
> AND IS just used TO explain my point.
> AND there should be a bunch more lines below this one WITH preserved
> words IN them.
> '
> '
> ---
>
> That wouldn't be the case if you can put an /*
> and */ and can paste between those.
> Can't explain it any more clearer than this.
>
> Too bad it's a lot of work to implement.
>
> Regards,
> Ron_2nd.
> > Ron wrote:
> >
> >> But.. sometimes you want to paste some lines of text as comment into
> your
> >> code. If you do this your way the text gets parsed/changed as soon as
> you
> >> paste it. Before you get the change to mark it as comment.It would be
> nice
> >> if you can type /* and */ and paste the stuff between it so the editor
> >> leaves it untouched. That's my reason for having a more clever way of
> >> marking a comment block.
> >> Regards,
> >> Ron_2nd.
> >>
> >> ---
> >> this e-mail is sent with my android phone.
> >>
> >>
> >>> Highlight the block of code you want to comment out.... then click >
> the
> >>>
> >> little comment icon i...
> >> Yes but no: many times I have to comment/decomment many parts of a
> single
> >> block, with C comment you can see where you are instantly otherwise you
> >> must re-read each line.
> >>
> >> But thanks anyway :)
> >>
> >>
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list