Split editor area
-
- User
- Posts: 67
- Joined: Thu Jul 29, 2010 10:53 am
Split editor area
Hi,
Being able to split horizontally the edit area is something I find myself missing on the PB IDE from time to time.
If the Scintila lib makes this functionality easy to implement I think it would make a good addition to the IDE.
Being able to see and edit at two different places of the same file at once comes very handy when refactoring, as one can avoid having to scroll up and down all the time.
Note: As a sustitute I use markers, but most of the time it is not good enough.
Being able to split horizontally the edit area is something I find myself missing on the PB IDE from time to time.
If the Scintila lib makes this functionality easy to implement I think it would make a good addition to the IDE.
Being able to see and edit at two different places of the same file at once comes very handy when refactoring, as one can avoid having to scroll up and down all the time.
Note: As a sustitute I use markers, but most of the time it is not good enough.
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Re: Split editor area
Having the option of splitting the editing area in two would be nice indeed, both horizontally and vertically.
I like logic, hence I dislike humans but love computers.
-
- Enthusiast
- Posts: 796
- Joined: Tue May 20, 2008 2:12 am
- Location: Cologne, Germany
- Contact:
Re: Split editor area
Great idea.
I am scrolling like crazy up and down my code. And it's only some 1000 lines...
I am scrolling like crazy up and down my code. And it's only some 1000 lines...

Regards,
JamiroKwai
JamiroKwai
Re: Split editor area
I'm not 100% sure, but I don't think Scintilla supports this kind of thing.
I may look like a mule, but I'm not a complete ass.
Re: Split editor area
Why keep scrolling? Typically you're checking code in another section, ie. its a one way activity. Why not simply load the code into an external viewer?
I'm using two screens, and when I need something I launch CodeCaddy and keep it, showing the appropriate part of the code, on the second screen.
Works like a dream
In fact, I've been trying to use multiple views, and found it rather confusing in most applications, except perhaps for Excel.
I'm using two screens, and when I need something I launch CodeCaddy and keep it, showing the appropriate part of the code, on the second screen.
Works like a dream

In fact, I've been trying to use multiple views, and found it rather confusing in most applications, except perhaps for Excel.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: Split editor area
@srod
Scintilla has a few features for a sci-window with the same content
Scintilla has a few features for a sci-window with the same content
Code: Select all
Procedure sci_cb(Gadget, *scinotify.SCNotification)
EndProcedure
Procedure Main()
If OpenWindow(0, #PB_Ignore, #PB_Ignore, 640, 480, "")
InitScintilla()
ScintillaGadget(0,0,0,0,0,@sci_cb())
ScintillaGadget(1,0,0,0,0,@sci_cb())
SplitterGadget(2, 0, 0, 640, 480, 0, 1)
dp = ScintillaSendMessage(0,#SCI_GETDOCPOINTER)
ScintillaSendMessage(1,#SCI_SETDOCPOINTER, 0, dp)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndProcedure:Main()
Re: Split editor area
Wow, that is cool.
I did say that I wasn't 100% sure!
I've not encountered that before. Thanks hallodri.
Right, in that case,...... + 1.


I've not encountered that before. Thanks hallodri.
Right, in that case,...... + 1.

I may look like a mule, but I'm not a complete ass.
Re: Split editor area
Yeah, this would be a really handy feature. I just needed it today (well, more like every coding day
)!

If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Split editor area
+1 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: Split editor area
I support the request and want to update it to the present.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).