Interactive PowerBasic Forum

IT-Consultant: Charles Pegge => OxygenBasic Examples => Topic started by: Zlatko Vid on May 31, 2023, 01:34:05 PM

Title: AurelEdit v0.7
Post by: Zlatko Vid on May 31, 2023, 01:34:05 PM
Hello
In attachment is binary + source version
so you can compile it if you wish.
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 06, 2023, 08:03:04 PM
Should we add it to the O2 - Setup possibly?
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 06, 2023, 09:35:10 PM
If you ask me ...
I will say ...status quo or
there is no need for that ,also that Charles want it in
OygenBasic zip ,he will add it ...right?
Inside \demos\!projectB\Scintilla  is still old ...old
version of my ASciEdit which i made long time ago as proof
that scintilla based code editor can be made with o2.
why is still there ..you must ask Charles.

It is perfectly clear that everybody here have his own favorite code editor
Charles prefer OxIde which is good but very minimal to me
so i use my own..

So Aurel Edit is another alternative editor for o2.
if someone like to try/use it is here as portable software.
And is open source and u can compile it yourself.

PS. after fixing some minor mistakes in code i compiled it with o2 - 604  ;D
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 07, 2023, 08:37:12 AM
Can you improve it in a way that it has at least all features like the normal PB-Editor?
Then we could replace Oxide ...
But it must be a complete replacement.
Means that it must have all features of Oxide and more ...
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 07, 2023, 02:42:45 PM
I am not sure what features have Oxide ..
i don't investigate OxIde code to much ,
also i don't know what kind of features you want to see
or PB Editor have ...
I use it for some PB code and find it primitive(aka no line numbers on left side  :o )

OxIde is good ..but with Tabs should be far better(i think)
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 07, 2023, 03:14:23 PM
Hi Theo

Do you mean on something like options and similar?
Ouch . i don't have a clue how to do all that things

Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 07, 2023, 03:44:17 PM
I think AurelEdit should remain as a third party app, since it is a bit large to include directly, and also needs to be fully under the control of its author :)

Oxide is a simple introductory IDE that uses Scintilla. As with all tools, the source code can be found in tools\ and is freely available for creating derivatives or repurposing.

I like the new tabbed Notepad of Windows 11 which works very well with tabbed folders. The Find/Replace control is also more programmer-friendly. But my main tool is currently Peroxide, which enables symbol searches across hundreds of files in multiple groups of directories. It is very similar to having tabs, but potentially hundreds of them. Each tab gives instant navigation for all the line numbers where a symbol is located. But its a very small program that does not need Scintilla. It can be run as a script since it compiles in a fraction of a second, but the binary is more convenient when doing live surgery on OxygenBasic source code.
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 07, 2023, 04:55:31 PM
QuoteI think AurelEdit should remain as a third party app, since it is a bit large to include directly, and also needs to be fully under the control of its author

Yes Sir  :)

Aurel Edit currently have->  2300 lines of code
awinh037.inc have        ->  1649 lines of code

yes both have a lot of code

As i said OxIde is fine i use it from time to time as extra editor for copy/paste
and similar stuff ...and tabs can be added i think without lot of coding.
Peroxide ...hmmm i am confused with that one .
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 08, 2023, 04:31:21 PM
I tried to compile it and failed.
I get some
2023-06-08 16_33_18-O2H.jpg
error.

I am putting it in Demos.
If you have a version that will compile, tell me then i will replace it.
Having something like a customizable Editor is a plus for the program.
I am in no way worried about the size, we have no more floppy-discs, you know.
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 08, 2023, 05:23:04 PM
Ahh yes i know...
I just repeat what Charles says
i will add corrected awinh037.inc + AurelEdit07.bas in attechment
this is just two tiny quirks ,,i forget to replace .

ps.Theo ..forum not work with .o2bas ..is not possible to upload it!
.inc is fine .
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 08, 2023, 05:48:43 PM
Hi Aurel, Theo

I've fixed about 10 errors, mostly undefined variables, so it now compiles with the current OxygenBasic.
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on June 08, 2023, 06:45:20 PM
Ah then ok Charles
i figured that something is wrong and remove some unused code
in this i compiled with o2 604 and work for me .
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 08, 2023, 09:01:10 PM
Ok, i added it to the Setup, I compiled it myself and digitally signed the file. So its now part of the distribution-Setup.
I could only compile it to 32 bit. I used the last version from Zlatko, i hope that was ok?
At least it compiled here without Errors in 32 bit.

Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 08, 2023, 09:58:36 PM
You will need a 64bit Scintilla dll and some extra work on the source code to ensure 64bit compatibility.
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 09, 2023, 07:30:09 AM
I do not think its that important. While ...

INTEL SUGGESTS DROPPING EVERYTHING BUT 64-BIT FROM X86 WITH ITS X86-S PROPOSAL (https://hackaday.com/2023/05/21/intel-suggests-dropping-everything-but-64-bit-from-x86-with-its-x86-s-proposal/)


I think main reason are "soon" expiring patents for start "edition"  x86_64,  new patents for x86_64-S will block enter in the market for other players.
All legacy instruction are probably for decades executed by micro-code.
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 09, 2023, 11:46:02 AM
Thanks Theo, Good find!

We don't use any legacy coding in the compiler.

Compatibility-mode to run 32bit binaries still remains available in the proposed X86-S
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 09, 2023, 12:54:11 PM
@Charles, this means that it would be best to have the compiler itself solely in 64 bit, no matter if the result should be 32 bit or 64 bit.
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 10, 2023, 12:47:32 AM
I will need to do some code yoga. The bugs can be very subtle in a self-compiling system, as it is super-recursive, taking many hours to trace.
Title: Re: AurelEdit v0.7
Post by: Theo Gottwald on June 10, 2023, 12:18:21 PM
@Charles, the Trick is to use Building Blocks that are reliable and well tested,
even if its a bit slower at the end.
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on June 10, 2023, 03:03:07 PM
reliable and well tested may apply in one domain, but the hidden weaknesses are only exposed when the code is transposed to another domain.
Title: Re: AurelEdit v0.7
Post by: Frank Brübach on October 04, 2023, 08:53:40 AM
Good morning I am looking for a similar example to "dialogfindsearch.o2bas" however with scintilla Basis. I tried to make IT with a toolbar Button Tool but IT doesnt Run any Help is Welcome... And or Code snippet...

A) peroxide.o2bas I Like very much since I have tested yesterday but its still new for me and

B) aurels Editor v0.7 seeems to be very nice too but its Not running Here with latest oxygen built 3 month ago... I cannot Compile aurels Editor with oxygen ... Thx Bye Frank

PS @zlatko perhaps you can fix some Problems with your include File awinh37 to make IT Run
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on October 06, 2023, 09:47:04 PM
hi Frank
I don't know how you cannot run when i can
i tested it last time with OxygenBasic0604
and work for me :



in attachment is all:
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on October 06, 2023, 09:50:06 PM
or you can download binary:
Title: Re: AurelEdit v0.7
Post by: Frank Brübach on October 07, 2023, 03:19:13 PM
Hi Zlatko... Doesnt Work at all. I am using aedit07.o2bas, awinh37.inc, oxygen dll of 04.10.2023, Oxide of 27.06.23.
After I am trying to Compile there are First these Problems Here:
1) Procedure #lookahead
2) creatascitable Line 255 Not found
3) addtbutton Line 314 Not found
4) createfirsttab Line 431 Not found
5) oxykeyeords 458 Line Not found
... Much more

I guess its concerning your include File causing These Errors

Bye Frank
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on October 07, 2023, 08:58:03 PM
Frank
seems to me that you don't read whole topic
like you in hurry for something ..i don't know

so please read first page of thread
and you will find both Charles fixed version
and also my fixed version
both compile with 604 version
i don't know what else to say ???
Title: Re: AurelEdit v0.7
Post by: Frank Brübach on October 08, 2023, 01:10:03 PM
Hi zlatko... I have used the newest oxygen.dll of 04.10.2023 to Test your Editor. By this way I have got all These Errors Messages...

But... If I am using an oxygen.dll of 30.12.2022 your Editor works fine Here. Strange..  its Sometimes frustrating what Changes one dll creation to  a newer one  causes for Trouble..

@,hi charles I Hope you can have a closer Look in your latest oxygen.dll building nice day Bye Frank
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on October 08, 2023, 03:05:38 PM
I wonder if they are  #lookahead problems?
Title: Re: AurelEdit v0.7
Post by: Frank Brübach on October 08, 2023, 04:16:46 PM
Error: iterator must be defined
Word: procedures
Col 1
Line 10
File: Main source

#lookahead ' for procedures ist placed at Line 10
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on October 08, 2023, 06:34:42 PM
Got it! I've fixed the #lookahead. I never use it myself - I prefer explicit declarations

You only need the compilers (oxygen.in zip) to go into the main folder

https://github.com/Charles-Pegge/OxygenBasic/blob/master/Oxygen.zip

Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on October 09, 2023, 07:15:19 AM
what is iterator ?
# <- this one ?
Title: Re: AurelEdit v0.7
Post by: Zlatko Vid on October 09, 2023, 12:22:08 PM
QuoteGot it! I've fixed the #lookahead. I never use it myself - I prefer explicit declarations
I simply must use it because there are lot of code in awinho37.inc
Title: Re: AurelEdit v0.7
Post by: Charles Pegge on October 09, 2023, 02:34:24 PM
I prefer to organize functions in natural order because it is easier to see the program architecture with the lowest levels defined first. This does not work for recursive functions, of course, and procedure declaration becomes a necessity in this case.