[Implemented] '_' for line extension

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] '_' for line extension

Post by BackupUser »

Restored from previous forum. Originally posted by Amiga5k.

This may already be available in some form: The ability to continue the current line onto the second line with, say, an underscore character. Sometimes, even in 1280 x 1024, I end up with a line of code that extends beyond the right edge and can not be broken up easily. A '_' at the end, signifying that this line continues on the next would come in handy.

Russell

***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
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 ricardo.

Yes could be great i always has problem with that.

Also a way to coment more than one line with out the need to add ; to every line, just like C.

Best Regards

Ricardo

Dont cry for me Argentina...
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 Denis.

I agree 100%

I will be really great.


Denis
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 Amiga5k.

Or, alternately, a word-wrap option in the IDE so that it will wrap automatically t the next line and still look fine on super-wide monitors (I think the "_" option is better, though).

Russell

***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
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.

> Also a way to coment more than one line with out the need to add ; to every line,
> just like C.

Do you mean without having to use the block comment feature?
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 ricardo.
Do you mean without having to use the block comment feature?
Yes, some block comment by code, just like C and many languages.

/*
ALL THIS
LINES ARE
INSIDE A BLOCK COMMENT
*/

Its easier than:

;ALL THIS
;LINES ARE
;INSIDE A BLOCK COMMENT

Many languages has this option.

Best Regards

Ricardo

Dont cry for me Argentina...
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 Amiga5k.

Although block commenting would be nice (along with 'UnComment Selected Lines'), what I'm talking about is extendingthe current line of executable code to the next line:

Code: Select all

If a = 2 Or (j = a And b < c And q = 7) Or _    
    (y = 3 Or d = y) Then
PrintN "That's a ridiculous example, eh?"
Else PrintN "It's business as usual..."
EndIf
Notice the "_" at the end of the first line, which extend onto the next.
If you're opening a window with lots of Or'ed Constants, the program line can easily exceed the edge of your screen.

Russell


***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
Post Reply