2 Ide Features

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Motu
Enthusiast
Enthusiast
Posts: 160
Joined: Tue Oct 19, 2004 12:24 pm

2 Ide Features

Post 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.
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Re: 2 Ide Features

Post by milan1612 »

Motu wrote:block comment function like C

/* */
This is due of the language design. Most Basics don't have block comments...
Windows 7 & PureBasic 4.4
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

DUe to language design, most Basics don't have pointers.

Didn't stop PureBasic though! :D
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

This has been already requested before
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Foz wrote:DUe to language design, most Basics don't have pointers.

Didn't stop PureBasic though! :D
Fortunately :)
Windows 7 & PureBasic 4.4
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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 :)
Last edited by Joakim Christiansen on Tue Nov 20, 2007 3:22 pm, edited 1 time in total.
I like logic, hence I dislike humans but love computers.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Try Ctrl+B and Alt+B on a selected block of text.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post 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.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Code: Select all

CompilerIf #False
  Hooo,
  a
  block
  comment!
CompilerEndIf
;)
quidquid Latine dictum sit altum videtur
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

I think someone is getting smart with us here... :lol:

Thanks for the tip!
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

@fr34k :lol: :lol: 8)
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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 :?:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post 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 
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
Post Reply