Page 1 of 2

2 Ide Features

Posted: Mon Nov 19, 2007 1:32 pm
by Motu
1. The search function should search in all include files as well (best would be a checkbox in the search dialog)

2. A block comment function like C

/* */

to make block comments.

Re: 2 Ide Features

Posted: Mon Nov 19, 2007 2:11 pm
by milan1612
Motu wrote:block comment function like C

/* */
This is due of the language design. Most Basics don't have block comments...

Posted: Mon Nov 19, 2007 5:14 pm
by Foz
DUe to language design, most Basics don't have pointers.

Didn't stop PureBasic though! :D

Posted: Mon Nov 19, 2007 6:18 pm
by Psychophanta
This has been already requested before

Posted: Mon Nov 19, 2007 6:27 pm
by milan1612
Foz wrote:DUe to language design, most Basics don't have pointers.

Didn't stop PureBasic though! :D
Fortunately :)

Posted: Mon Nov 19, 2007 7:47 pm
by Joakim Christiansen
Block comments would be nice to have.

EDIT:
Try Ctrl+B and Alt+B on a selected block of text.
I use them all the time :)

Posted: Mon Nov 19, 2007 9:46 pm
by Trond
Try Ctrl+B and Alt+B on a selected block of text.

Posted: Tue Nov 20, 2007 8:40 am
by PB
> Try Ctrl+B and Alt+B on a selected block of text

Which sucks to do when the block is more than a screen size long.

Posted: Tue Nov 20, 2007 2:48 pm
by Derek
PB wrote:> Try Ctrl+B and Alt+B on a selected block of text

Which sucks to do when the block is more than a screen size long.
That would be a lot of comments. But no doubt there will be a time when you need that many.

Posted: Tue Nov 20, 2007 4:47 pm
by freak

Code: Select all

CompilerIf #False
  Hooo,
  a
  block
  comment!
CompilerEndIf
;)

Posted: Tue Nov 20, 2007 4:53 pm
by Foz
I think someone is getting smart with us here... :lol:

Thanks for the tip!

Posted: Tue Nov 20, 2007 6:08 pm
by Thalius
@fr34k :lol: :lol: 8)

Posted: Tue Nov 20, 2007 8:09 pm
by Psychophanta
BTW, shouldn't work this?:

Code: Select all

Macro REM
  CompilerIf #False
EndMacro
Macro EndREM
  CompilerEndIf
EndMacro

REM
  Hooo, 
  a 
  block 
  comment! 
EndREM
Bug :?:

Posted: Tue Nov 20, 2007 8:13 pm
by Foz
No, the CompilerIf processes it on COMPILE time, so what actually gets compiled in that case is:

Code: Select all

Macro REM
EndMacro

REM
  Hooo,
  a
  block
  comment!
EndREM 

Posted: Tue Nov 20, 2007 8:18 pm
by freak
No, the REM macro is correctly expanded to "CompilerIf #False".

But then everything is ignored until a "CompilerEndIf" is reached (including macro resolving)
But the CompilerEndIf is never found as it is inside a macro that will not be expanded.

Not a bug. Just logical behavior.