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: 5528
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: 4264
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: 5528
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: 193
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: 579
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: 5528
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: 579
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: 5528
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: 579
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: 4264
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: 5528
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
User avatar
falsam
Enthusiast
Enthusiast
Posts: 639
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: Simple PB code editor

Post by falsam »

Coucou KCC 😉

The project is 9 years old, but the code works with PB 6.30 Beta3.

The goal is to create a step-by-step text editor.
Indentation, line numbering, autocompletion, folding, and syntax highlighting.

Copy and paste and text saving are missing.

■ Download : https://github.com/pbcodex/ScintillaGad ... master.zip

Image


Enjoy 🤪

➽ Windows 11 64-bit - PB 6.21 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect 🤪
User avatar
skywalk
Addict
Addict
Posts: 4264
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post by skywalk »

Nice!
I'll give a look also.
I have a custom scripting language for my app and I use richtext edit, but it is rudimentary.
I prefer to implement the syntax highlighting of Notepad++ or Scite but was thwarted with GoScintilla. The IDE code is better, but it has dependencies spread out.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
miso
Enthusiast
Enthusiast
Posts: 579
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Simple PB code editor

Post by miso »

Thanks for the link Falsam.
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Simple PB code editor

Post by HeX0R »

skywalk wrote: Wed Dec 03, 2025 7:44 pm I have a custom scripting language for my app and I use richtext edit, but it is rudimentary.
You have created your own scripting language?
Post Reply