Simple PB code editor

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5522
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Simple PB code editor

Post 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
ImageThe happiness is a road...
Not a destination
User avatar
skywalk
Addict
Addict
Posts: 4257
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post by skywalk »

Hi Kwai
That is not a simple editor.
But what you describe is in the open source PB IDE.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5522
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Simple PB code editor

Post 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:
ImageThe happiness is a road...
Not a destination
TassyJim
Enthusiast
Enthusiast
Posts: 192
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: Simple PB code editor

Post 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
miso
Enthusiast
Enthusiast
Posts: 525
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Simple PB code editor

Post 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
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5522
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Simple PB code editor

Post 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)
ImageThe happiness is a road...
Not a destination
miso
Enthusiast
Enthusiast
Posts: 525
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Simple PB code editor

Post 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 ;)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5522
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Simple PB code editor

Post 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)
ImageThe happiness is a road...
Not a destination
miso
Enthusiast
Enthusiast
Posts: 525
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Simple PB code editor

Post by miso »

I agree. And you would not find it while searching for keywords like scintilla. I think. Not sure ;)
User avatar
skywalk
Addict
Addict
Posts: 4257
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post 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)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5522
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Simple PB code editor

Post 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:
ImageThe happiness is a road...
Not a destination
Post Reply