Simple PB code editor

Just starting out? Need help? Post your questions and find answers here.
User avatar
skywalk
Addict
Addict
Posts: 4265
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post by skywalk »

Ha! You make it sound special?
It was necessary to allow users to execute variable actions within my app. I wrote a compiler that digests their requests and executes them or explains any syntax or logical errors. This is highly specific to an engineering setup involving many instruments and motorized movements.
These scripts can be hundreds of lines.
It is helpful to highlight and fold areas for comparison and legibility.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
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 »

Yes, I consider it special!
When you look through the forum you don't find many PB made scripting languages.
Is it too special to make it public?

Once in the past I was in need of a scripting language for one of my apps, I tinkered with LUA, but never was really happy with it.
Then srod came up with his minScript and I fell in love with it (don't tell my wife :mrgreen:).
No need for a third party dll, just include it and it worked rock solid.
But srod is gone, and if there were alternatives, I'd be happy to try (any many others also I guess)
User avatar
skywalk
Addict
Addict
Posts: 4265
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post by skywalk »

Sorry to hear about srod :(
He was a big influence on me when I started using PB.
My app is too customized to break out the scripting part.
It's really a sequence compiler.
The sequence is English instructions targeted to my users.
Lua is an interesting choice, but I would have to educate the users a lot more to get them started!
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 »

@Falsam
Yeees happy to talk to you 8) , there is a too much long time :|
And one million of thanks FALSAM for your great present 8)
I take a look and try already to understand (I have'nt your great knowledge :oops: )
I wish you an excelent evening 8)
HeX0R wrote:But srod is gone
I thought I understood that he was ill, but I'm not sure :oops: , I hope I'm wrong. I loved his wonderful codes :shock: and even more so the creator. 8) I miss him :cry:
ImageThe happiness is a road...
Not a destination
User avatar
Piero
Addict
Addict
Posts: 1147
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Simple PB code editor

Post by Piero »

Mac TextMa… OOOPS! Sorry :oops:
BarryG
Addict
Addict
Posts: 4272
Joined: Thu Apr 18, 2019 8:17 am

Re: Simple PB code editor

Post by BarryG »

HeX0R wrote: Wed Dec 03, 2025 11:00 pmsrod is gone
skywalk wrote: Thu Dec 04, 2025 4:47 amSorry to hear about srod :(
Wait... what? Gone from the forum or passed? I don't recall seeing any passing mentioned here before.
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 »

I wrote “gone,” not “passed away”
BarryG
Addict
Addict
Posts: 4272
Joined: Thu Apr 18, 2019 8:17 am

Re: Simple PB code editor

Post by BarryG »

It can mean the same thing. That's why I wanted clarification. All good.
User avatar
skywalk
Addict
Addict
Posts: 4265
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Simple PB code editor

Post by skywalk »

Whew!
Good to hear. Everyone deserves some retiring time after many years of hard, productive work.
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 »

And again it's not sure, sometime someone not come here because he not have enough time for visit us after work :cry: or also personal problem..
We often forgot that pb members is like all the celebrity... Even the gods of programmation have same life problems that everyone :|
I'm very happy to read one of my PB heros is always of this world 8)
ImageThe happiness is a road...
Not a destination
Axolotl
Addict
Addict
Posts: 901
Joined: Wed Dec 31, 2008 3:36 pm

Re: Simple PB code editor

Post by Axolotl »

Hey KCC,
I don't want to be rude, but just curious:
What exactly are you planning to do?
There are some good posts here in the forum based on Scintilla. Why isn't any of them suitable for your project?
P.S.: I would have included links, but you are already mentioned in all the posts (that I found). So you know them all...
P.P.S.: I'm always interested in topics like this. I think I'm kind of collecting OSS/PD/free editors...
To cut a long story short: I would still be interested in the result.
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).
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 Axolotl

I hate the WEB programmation, but unfortunately now we can't we can't avoid it :|
I have create several personnals and cow pat pages (The same than PB method :mrgreen:) but in worst (Yes it's possible :lol:)
And obviously...like the PB application, a day...It no longer works, and i never know how :shock:

Then i quit my loved PB editor...for go to the dark side word of programming :cry:
Like i'm again more null than local programmation, i have tested numerous free HTML IDE (in fact i believe all existing :oops:) , WYSIWYG or not and none of them caught my attention for X reasons (Too much complex, not portable, to big to install, too much menus, real dashboard of plane :shock:, etc ...)
Each time i'm forced to return to the black side, the only one solution for me, is notepad++ (The more simple i have found) + Fillezilla+Putty+Excel for template memory (For replace my old brain :oops: )
And i lost numerous time to clic at right or left, on each of this 4 applications (and sometime more) for try to fix the HTML bug
Then... already i hate the WEB programmation, but i do it with the worst tools of the world :lol:
Forced another time to return on the black...for just a "é à ê ç" etc ... damn French :evil:

And each time i'm forced...pending the long days i lost, i say to me :
Click => "Surely my friend PB can help me !!"...
Click => "Surely my friend PB can help me !!"
Click => "Surely my friend PB can help me !!"
"i'm sure..."
Click => "Surely my friend PB can help me !!"
And the cherish on the cake, recently, the FTP of notepad bug...and impossible to manage the UTF8, it messed up my files and APACHE send to me several message, and several files are not found, etc...this time..it's the shovel that made the wheelbarrow overflow :twisted:

It's the reason why, there are a long time, i have try to do my own, without succes obviously (Like usualy we not change a loosing team :mrgreen: )
And lately, i say to me perhaps a god of PB have already do a SIMPLE editor, and i can to 'just" try to manage putty and other softwares for create the more simple KCC HTML editor of the world for the null what ... :mrgreen:

Just simples editor options, the base...a very simple ftp management...a little template...and a HTML viewver or sending to FF or another navigator
Because in fact when we have my level...That's enough, a thousand times over. 8)
This has been going on for decades... I'm fed up... I need to try again (and mainly hope this time it's the good :oops: ) to do something with my favorite PB language (the one who for the past 30 years has always pulled me out of the shit 8) ) and all my many friends from PB that I love, to get myself out of this :idea:

In one world...
simple and powerfull..
The FRED touch what 8)

And KCC can go to the dark side with as much serenity

Image

as this damn language allows :evil: obviously :wink:
ImageThe happiness is a road...
Not a destination
Axolotl
Addict
Addict
Posts: 901
Joined: Wed Dec 31, 2008 3:36 pm

Re: Simple PB code editor

Post by Axolotl »

So you're looking for an HTML editor with WYSIWYG (at least preview) and access to your web server via FTP?
And there's nothing suitable? Okay, understood.
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).
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 »

Yes ..my dream is a WYSIWYG, but real WYSIWYG, like Dreamweaver...the firsts versions...not after, too much complicate for KCC :oops:
When i try this jewel for the first time, i see it's like VD of PB or VD of B4A, you put your DIV where you whant to see it...and miracle...you see it, where you wanted :shock:

After the CSS come...and it was the end of the beans for little KCC :|
This CSS, for a little brain like me, it's the REGEX of the web :oops: which is itself almost worse than ASM
With REGEX, CSS, and ASM, we're getting closer to the Malbolge :lol:

But what i dream (not weaver :mrgreen: ) to create...it's not a jewel like VD of dreamweaver or PB...but just a really simple text editor who :

1/ For the Editor himself

1.1/ Recognize HTML, PHP, perhaps CSS, but not sure :twisted: )
1.2/ Folding only functions (or more if is simple, but i'm not really interested),
1.3/ Open and go inside folding functions, if double click on his name on all the code
1.4/ Research of words
1.5/ Hightlighting all the words selected by user in all the code

1.6/ And if i have the courage and mainly i succeed with surely help :oops: other little functions like :
Change case (Upper/Lower, CamelCase, etc..), etc ...
Comment/UnComment (Difficult because the comment are not the same in JS/PHP and HTML :| )

2/For the extensions

2.1/ Adding a very simple FTP (The minimum)
2.2/ Adding a template manager like PB
2.3/ Adding a visual return of the server error (With more or less function if i have the courage too)
2.4/ Adding a WEB navigator (or sending code to external) for see immediately the result
2.5/ And if i have the courage too, Adding a color generator

If i do something like that..write a text...and press "RUN" and see the result immediately in navigator and server comment....

Then...like a valiant knight :D

Image

I'll be prepared for next time i'm forced to go to dark world :lol:

And above all, never again have a problem I can't solve 8) , like the one I had with Notepad++'s FTP :shock: :twisted:
ImageThe happiness is a road...
Not a destination
Post Reply