Page 1 of 1

Simple PB code editor

Posted: Tue Dec 02, 2025 9:07 am
by Kwai chang caine
Hello at all

By miracle, has anyone seen a pb code of very simple editor who have the base, like:

Line number
Folding
keywords color
Research
Hightlighting same word selected
Copy paste

And obviously more... it's always interesting like :

Open procedure with double click on name
Etc...

Have a good day

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 8:07 pm
by skywalk
Hi Kwai
That is not a simple editor.
But what you describe is in the open source PB IDE.

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 8:20 pm
by Kwai chang caine
Hello skywalk

Happy to talk to you 8) , there are a long time :wink:

Yes you have right, i have also thinking to our IDE of love :idea:
But one time, at the begining, i have take a look to the source :shock: , and i have closed the source :mrgreen:
It's surely possible to extract only the EDITOR, but i think perhaps more difficult for me that create another one :oops:
Further more i think FRED not be really happy if we do that :oops:

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 8:56 pm
by TassyJim
Search the forum for GoScintilla.

I started with GoScintilla for my code editor and that will give you most of what you are looking for.
My editor is for Basic that runs on various microprocessors and is too convoluted for you to use as a start.

You will find a couple of changes are needed to run GoScintilla in recent versions of PB but not too many.

Jim

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 9:02 pm
by miso
Hidden gem from pf Shadoko from the 3d section. (Hidden, because it is in the 3d section.) His shader editor might be a good base for your needs:

viewtopic.php?p=645739#p645739

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 9:09 pm
by Kwai chang caine
Hello TassyJim
Glad to talk you for the first time :wink:

There are a long time, i try to do with GoScintilla (i believe) and each function one by one works very well (Folding or Lightning, etc...) but when i have adding all the functions together...my code is so hard to understand, i abandoned and never find the bug :oops:
And i have use several days for create it (I'm only KCC :oops: )
Furthermore, before write this thread, i research my complex code for ask help...and it's worst...impossible to find it :evil:
I say to me...all do to the begining, perhaps it's time to start to a good base, if something already exist :wink:

@Miso
Thanks a lot, i take a look 8)

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 9:13 pm
by miso
@Kwai chang caine
But seeing your next post, I belive you already did most of the hard work then. ;) Well, still worth to look at it ;)

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 9:15 pm
by Kwai chang caine
whaooouuh !!! that seems like a good starting point for what I want to do, you're right. :shock:
I'd never seen it before because I'm not interested in games or 2D/3D.
Thanks a lot for your precious help 8)

This PFShadoko is really too strong 8)

Re: Simple PB code editor

Posted: Tue Dec 02, 2025 9:17 pm
by miso
I agree. And you would not find it while searching for keywords like scintilla. I think. Not sure ;)

Re: Simple PB code editor

Posted: Wed Dec 03, 2025 2:10 am
by skywalk
I had no luck with GoScintilla due to multi-threading errors.
Thanks for the post on 2D/3D editor.
I will also have a look. 8)

Re: Simple PB code editor

Posted: Wed Dec 03, 2025 10:18 am
by Kwai chang caine
skywalk wrote: Wed Dec 03, 2025 2:10 am I had no luck with GoScintilla due to multi-threading errors.
Waooouuuhh !!!Thanks a lot for having confessed your problem with GoScintilla 8)
You cheer me up...because if you...you have problem with your great knowledge...try to imagine KCC :oops:
It seems that using Scintilla directly is very hard, so I don't even dare to think about what it must be for me :lol: