[Gambas-user] Comment Blocks

nando_f at nothingsimple.com nando_f at nothingsimple.com
Wed Apr 24 14:11:30 CEST 2019


Always a very good idea for block quotes.
unfortunately, the backtick is presented very and similar to it's friend '
'`'''  a bit cryptic?     `'

If I had my way, just the backtick only on position 1 would start or stop block quotes.
`
   PRINT "Hello"
`
I might have it highlight in yellow or something to show.

Thanks,
-Fernando


--
Open WebMail Project (http://openwebmail.org)


---------- Original Message -----------
From: Rolf-Werner Eilert <rwe-sse at osnanet.de>
To: user at lists.gambas-basic.org
Sent: Wed, 24 Apr 2019 12:16:54 +0200
Subject: Re: [Gambas-user] Comment Blocks

> Am 20.04.19 um 18:15 schrieb Cedron Dawg:
> > Kind of slow around here, so here is something to ponder.
> > 
> > I'm wondering what others think about the ability to have comment blocks.  In C, I use
them as intended, but they are also darn handy to block out sections of code while
debugging.  The same would be true in Gambas.
> > 
> > I would suggest using the much underutilized reverse apostrophe (aka grave accent or
backquote), living lonely under the tilde on most keyboards, in combination with the
traditional apostrophe to make the demarcation quite clear.
> > 
> > '`  Anything here is comment...(including multiple lines)..... `'
> > 
> > Kind of makes them look like stylish double quotes.
> > 
> > I haven't tried these yet:  http://gambaswiki.org/wiki/doc/helpcomments
> > 
> > But they could be done as '`'''  ....     `' and '`''  ....     `' respectively.
> > 
> > Thoughts?
> > 
> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> > 
> >
> 
> I like the idea, because it would save several steps (even when a 
> keystroke is used for commenting, you still have to highlight the block).
> 
> However, don't like ` for it because it's tricky on a German keyboard 
> layout. Why not an easy combination of ((+ and +)) ? Or additionally to 
> the quote sign '(( and '))
> 
> Regards
> Rolf
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
------- End of Original Message -------



More information about the User mailing list