BASIC

Author Topic: /**/ Comments  (Read 2657 times)

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
/**/ Comments
« on: 2010-Aug-23 »
Is it possible to add multiple line comments like...

/*This is a
comment in
some lines
*/

?
That would be very nice! :)

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4144
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: /**/ Comments
« Reply #1 on: 2010-Aug-23 »
I asked for this a long time ago. The answer is... no, but yes. Kind of.

What you can do is type a load of comment lines eg...

Code: GLBasic [Select]
This is a comment
This is a comment
This is a comment
This is a comment
This is a comment
This is a comment
This is a comment
 

Highlight all of the comment text and then press and hold CTRL and K. This will place a // in front of the text (or remove if you want to uncomment by doing the same again). Not exactly what you're after, but it works nicely.

:)
I came. I saw. I played.

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: /**/ Comments
« Reply #2 on: 2010-Aug-23 »
Thanks for answer ;)

I know the function CTRL+K but I don´t like it so much if I have more then 10 lines...
But if it´s not possible it´s OK. Then I must use single line comments. :)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: /**/ Comments
« Reply #3 on: 2010-Aug-23 »
Code: GLBasic [Select]
?IF 0

...
?ENDIF
 

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Re: /**/ Comments
« Reply #4 on: 2010-Aug-23 »
Code: GLBasic [Select]
?IF 0

...
?ENDIF
 


Bahahahah ...NICE :D
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: /**/ Comments
« Reply #5 on: 2010-Aug-23 »
Find ich cooler als
//
//
//
!

:P