[Implemented] Comment/ Uncomment a selected Block in the Edi

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Comment/ Uncomment a selected Block in the Edi

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

Comment/ Uncomment a selected Block in the Editor like in VB.
I often have to comment some line out while testing.
;
If i can comment/uncomment a block Coding were easier.


Siggi
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by redacid.

yeah, that would be a nice feature since
i am used to it since blitz basic for amiga.

regards,
Redacid
---
Only Amiga makes it possible!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
Comment/ Uncomment a selected Block in the Editor like in VB.
Until Fred can implement this (fingers crossed!) you can tell the compiler
not to include blocks of code like the following. Works quite well!

Code: Select all

CompilerIf 0 ; Start of "commented" block.
  a$="all lines between CompilerIf/CompilerEndIf are ignored,"
  a$="so you don't have to manually comment them all out if"
  a$="you don't want to.  all you need to do is just comment"
  a$="out the CompilerIf/CompilerEndIf lines instead.  "
CompilerEndIf ; End of "commented" block.
a$=a$+"cool, isn't it?"
MessageRequester("test",a$,0)

PB - Registered PureBasic Coder

Edited by - PB on 16 January 2002 22:26:25
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by DarkUni.

Can't we use MultiEdit or some other external editor? Many programmer editors allow you to fold procedures as well as block comment.

I'm still monkeying with the demo, so I'm still working on it.

Shane R. Monroe
Dark Unicorn Productions
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by FAKEFACTORY.
Can't we use MultiEdit or some other external editor? Many programmer editors allow you to fold procedures as well as block comment.
I'm currently using SlickEdit with PureBasic. Very good (but a little expensive). Can fold multiple Selections, compile and build directly out of SlickEdit etc...

Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by DarkUni.

Cool .. I'll look it over ...

What I'm really looking for in an editor is:

-Fold/Unfold blocks on keyword (i.e. Procedure)
-Multiple Undo
-Block comment/uncomment
-Syntax highlighting (even if I have to write it myself)
-Type ahead (even if I had to write it)

Unfortunately, the editors that have these things are bloated, huge, and full of stuff I'd NEVER use (like MultiEdit).

Anyone else have feedback?

Shane R. Monroe
Dark Unicorn Productions
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Hey Shane, have you looked at conText (link on the PB Resources Site)
Someone has already written PB syntax for it and templates.
And it's free.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by DarkUni.

I'm on my way!

Shane R. Monroe
Dark Unicorn Productions
Post Reply