[Implemented] Fix the editor please?? Please?? Please??

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] Fix the editor please?? Please?? Please??

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

Change the editor behaviour so it doesn't jump to the end of the line!! I find myself swearing a lot over that one lately!!!!!!

Some of my lines of code can be very long and as I scroll through my code editing away, having the cursor jump right off the screen to the end of the line is irritating!!

Fangles
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 wavemaker.

I understand you, Fang, word wrapping should be a prime target for next release -we've said this before-. BTW, I've been studying the cab thing, it may be possible (I've even made a PB cab viewer/decompresser which *should* work, but it doesn't). I'll tell you if I have any success.

Bye,


Juan Calderón Alonso
Registered user
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.

What I would like to see is PureBasic emulate Visual Basic's "line continuation" characters (ie. space followed by underscore, " _") so that when the PureBasic compiler sees it, it takes the next line and considers it to be part of the previous (during compilation only, not during editing).

In other words, both of these code snippets would be considered one line:

MessageBox("title","this is one line",0)

MessageBox("title", _
"and this is one line also", _
0)


PB - Registered PureBasic Coder


Edited by - PB on 24 November 2001 10:38:15
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 MrVainSCL.

Hi Fang!

You can try following if your line is to long...

a$ = "title"
b$ = "this is one line! "
c$ = "easy way, isnt it? :wink:"
MessageRequester(a$,b$+c$,0)


Or just...


a$ = "title"
b$ = "this is one line! "
c$ = "easy way, isnt it? :wink:"
text$ = b$+c$
MessageRequester(a$,text$,0)


greetz

MrVainSCL!
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.
a$ = "title"
b$ = "this is one line! "
c$ = "easy way, isnt it? :wink:"
MessageRequester(a$,b$+c$,0)
But that makes your exe larger and use more memory (although only by a small amount) due to using three strings instead of one, whereas my Visual Basic request wouldn't because the PureBasic compiler would treat all three lines as one before compiling it.


PB - 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 Rings.

Note PB,

Purebasic is not VisualBasic.

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 fred.
What I would like to see is PureBasic emulate Visual Basic's "line continuation" characters (ie. space followed by underscore, " _") so that when the PureBasic compiler sees it, it takes the next line and considers it to be part of the previous (during compilation only, not during editing).

In other words, both of these code snippets would be considered one line:

MessageBox("title","this is one line",0)

MessageBox("title", _
"and this is one line also", _
0)

This is a very good idea (never tough about it) and I will probably implement it soon. Thanks !

Fred - AlphaSND
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 tranquil.

Fred, if you add this feature please make it optional in the Editors-Preferences. I prefere the Editor as it is now and WordWraping will make my sources wired. And please fix the "Change Font Size" in colored-mode. I cant use a font with a size of 8 or another font as the default. The size at the moment is to tall for me.... :)


Mike



Tranquilizer/ Secretly!
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.
Purebasic is not VisualBasic.
I know, but there's no reason why some of Visual Basic's cool features can't become part of PureBasic's features. What I suggested is a VERY handy code-formatting feature and doesn't affect anyone else at all if they don't want to make use of it.


PB - Registered PureBasic Coder

Edited by - PB on 25 November 2001 23:23:04
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.
Fred, if you add this feature please make it optional in the Editors-Preferences. I prefere the Editor as it is now and WordWraping will make my sources wired.
Tranquil, my suggestion for this feature doesn't affect anyone else if they don't want to use it. It's not automatic word-wrapping: it's user-specified word-wrapping. In other words, you can keep coding your PureBasic apps as per normal, whereas I could use the new feature by simply typing " _" at the end of each line myself, and the compiler would know to add the next line to the current one. So it won't affect anyone who doesn't want to use it...


PB - 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 Fangbeast.
release -we've said this before-. BTW, I've been studying the cab thing, it
If you ever get the CAB thing done, I will be able to make my code even more idiot proof than it is And since I am an idiot, I should know!!!

And I will be your grateful slave:)

Another registered user (but I don't usually say :):)

P.s. I like the idea of the line continuation characters. Almost every basic editor I have used over the last 25 years has had it. But, I don't want the word wrapping, just the editor to stay on the left collumn, in line with EVERY other editor out there and not jump to the end of the line!!!

Fangles
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 theogott.

My suggestion would be to make the Procedures "foldable".
So you could "fold" the procedures, that at last only the first Line is visible, and they change maybe color.

The "Procedure-Folding" is an old Feature, which make programmes more readable.
You have tested it, fold it, work on the next.

*************************
The best time to do things is now !
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 Shagwana.

I just found a bit of a nasty bug in the editor, when i typed in two english pound symbol by acedent (££), I could not delete it!, without deleting a selected area :(

http://www.sublimegames.com

Edited by - Shagwana on 09 December 2001 14:04:17
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.
How about a "Select All" drop down menu and/or WinDoze mouse right-click?
Just hit CTRL+A...


PB - 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 PB.
Another registered user (but I don't usually say :):)
Identifying as registered or not makes it easier to answer questions, because
you don't always know if the person with the problem is using the demo version
of PureBasic or not...


PB - Registered PureBasic Coder
Post Reply