Block comment

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

The best, I think, would be signes like ;* *; or yes a special compiler directive like:

Code: Select all

CommentsBlock
comments
on lines
EndCommentsBlock
.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i'd settle for 'startcomment endcomment' but i wouldn't use it (at all) so who am i :-)

still many shades of gfabasic in my programming style... one command one line one comment one line nothing fancy
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

But it would be good if Fred would say us why he didn't it and what does he think about this wish.
Fred ? :?:
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

The FAQ has linked to my three-year-old tip here:

viewtopic.php?t=3068

Does exactly what is requested here.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

blueznl wrote:japbe

1. [shft] + [cursor down]
2. [ctrl] +

works fine for me...

You don't need [shft] for step 1, simply to select the lines to comment.
But does the reverse way exist (to uncomment)?

@Gansta93: what about to translate into english the short-cut section from jaPBe German Manuel, please :wink: ?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

yes :

[Ctrl] + [Shift] +
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

Flype wrote:yes :

[Ctrl] + [Shift] +
Yes, but we must select the text to comment. With my wish, we'd just have to write for example /;comments;/... quickly!
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Can we please get real block comments.... :?
Post Reply