Page 1 of 1

Split editor area

Posted: Thu Sep 16, 2010 8:53 am
by Christian Uceda
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.

Re: Split editor area

Posted: Fri Sep 17, 2010 7:11 am
by Joakim Christiansen
Having the option of splitting the editing area in two would be nice indeed, both horizontally and vertically.

Re: Split editor area

Posted: Fri Sep 17, 2010 7:28 am
by Kukulkan
+1

Re: Split editor area

Posted: Fri Sep 17, 2010 8:46 am
by jamirokwai
Great idea.
I am scrolling like crazy up and down my code. And it's only some 1000 lines... :-)

Re: Split editor area

Posted: Fri Sep 17, 2010 9:19 am
by srod
I'm not 100% sure, but I don't think Scintilla supports this kind of thing.

Re: Split editor area

Posted: Fri Sep 17, 2010 9:25 am
by blueznl
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.

Re: Split editor area

Posted: Fri Sep 17, 2010 5:11 pm
by hallodri
@srod

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

Posted: Fri Sep 17, 2010 5:25 pm
by srod
Wow, that is cool. 8) I did say that I wasn't 100% sure! :wink:

I've not encountered that before. Thanks hallodri.

Right, in that case,...... + 1. :)

Re: Split editor area

Posted: Fri Sep 17, 2010 6:56 pm
by c4s
Yeah, this would be a really handy feature. I just needed it today (well, more like every coding day ;))!

Re: Split editor area

Posted: Wed Dec 01, 2010 1:14 am
by GBeebe

Re: Split editor area

Posted: Tue Dec 07, 2010 6:08 pm
by DoubleDutch
+1 :)

Re: Split editor area

Posted: Tue Dec 07, 2010 6:18 pm
by Tenaja

Re: Split editor area

Posted: Sat Oct 12, 2013 4:15 pm
by Axolotl
I support the request and want to update it to the present.