Editor

Give it a try, it costs you nothing !
Post Reply
Yevhen
Posts: 2
Joined: Fri Oct 25, 2024 2:00 pm

Editor

Post by Yevhen »

Hi, Francesco. I've been watching your project for 5 years. It's great for beginners and works perfectly on slow systems.
I'd like to share my experience. I've been programming in ASM for PIC for many years and used the PicAsmEditor editor.
The author of the program is Petr Vysochansky. It's written in Pure-Basic (304.0 Kb!!!).
When writing, he took into account the wishes of all participants of various Russian-language forums.
https://pure-basic.narod.ru/project/PicAsmEditor.html
A huge advantage of this editor is the program text navigation system with the ability to hide text blocks under a spoiler.
For this, Petr came up with a system of markers/comments. The beginning of a block is the symbols ";+/ name" and the end is ";-/ ".
Another feature is the ability to view all assigned variable names in the text at any time.
I would also like to note the system of pop-up hints for commands and auto-completion of keywords.
If you can implement such functionality in the ANNEX editor, then the process of writing programs will be reduced in time several times.
Sorry for bad English, it is not my language, I am from Ukraine.
Respectfully, Evgeniy.
Image
ulli
Posts: 57
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 11 times
Been thanked: 2 times

Re: Editor

Post by ulli »

Hi Francesco, hi Evgeniy,

the "block" feature reminds me to my wish for folding similar to vim.
Would indeed be very helpful.

Cheers Ulli
The light at the end of the tunnel has been switched off for energy saving reasons.
User avatar
cicciocb
Site Admin
Posts: 2516
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 531 times
Been thanked: 1788 times
Contact:

Re: Editor

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu Oct 31, 2024 11:10 am Hi, Francesco. I've been watching your project for 5 years. It's great for beginners and works perfectly on slow systems.
I'd like to share my experience. I've been programming in ASM for PIC for many years and used the PicAsmEditor editor.
The author of the program is Petr Vysochansky. It's written in Pure-Basic (304.0 Kb!!!).
When writing, he took into account the wishes of all participants of various Russian-language forums.
https://pure-basic.narod.ru/project/PicAsmEditor.html
A huge advantage of this editor is the program text navigation system with the ability to hide text blocks under a spoiler.
For this, Petr came up with a system of markers/comments. The beginning of a block is the symbols ";+/ name" and the end is ";-/ ".
Another feature is the ability to view all assigned variable names in the text at any time.
I would also like to note the system of pop-up hints for commands and auto-completion of keywords.
If you can implement such functionality in the ANNEX editor, then the process of writing programs will be reduced in time several times.
Sorry for bad English, it is not my language, I am from Ukraine.
Respectfully, Evgeniy.
Hi Evgeniy,
Thank you for your feedback and your interest in the project.
The editor is not my original creation; it is something I found online here, but I have extensively modified and customized it for this project. When I started the project some time ago, I was looking for something very small (in terms of size) because the editor code needs to be embedded into the binary code of Annex. This editor was exactly what I was looking for: small and easy to modify.
I have improved it several times over the years, particularly recently when I implemented multi-tab functionality and the ability to import "libraries" from external files.
Today, the complete editor is approximately 50 KB, including all icons and "syntax highlight" keywords.
What you are looking for already exists in other JavaScript code editors, such as Monaco Editor, or Code Mirror . I have tried to implement them, especially CodeMirror, but it is quite large and requires several add-ons to implement additional functionalities (such as code folding). This means it requires more space to be hosted inside the module itself, leaving less space available for the functionalities of Annex.

Finally, I decided to continue with EditArea simply because it is small and can be easily modified to meet my needs.
Implementing code folding and auto-completion within the existing editor should also be possible, but it would require a significant amount of effort.
Another possibility could be the creation of an external editor that can connect directly with the module. However, this option also demands considerable effort and would introduce another tool to maintain.
I appreciate your request for improvements, and I will add them to the TODO list. However, I must clarify that there is no commitment regarding the timeline for their implementation.
Yevhen
Posts: 2
Joined: Fri Oct 25, 2024 2:00 pm

Re: Editor

Post by Yevhen »

Hi, Francesco. Thank you very much for such a detailed answer.
An editor that takes up 50 KB is very cool!
Immediately comes to mind the Sinclair ZX 16K + 64K from my youth.
You have already done a titanic job and no one has the right to demand that you do even more.
By the way, have you ever thought about selling ANNEX as a children's LEGO construction set?
You can make a great manual with examples in pictures from the old site.
I work at a book factory and can make a batch of books. For this, I need a PDF file.
Respectfully, Evgeniy.
User avatar
cicciocb
Site Admin
Posts: 2516
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 531 times
Been thanked: 1788 times
Contact:

Re: Editor

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Fri Nov 01, 2024 7:30 am Hi, Francesco. Thank you very much for such a detailed answer.
An editor that takes up 50 KB is very cool!
Immediately comes to mind the Sinclair ZX 16K + 64K from my youth.
You have already done a titanic job and no one has the right to demand that you do even more.
By the way, have you ever thought about selling ANNEX as a children's LEGO construction set?
You can make a great manual with examples in pictures from the old site.
I work at a book factory and can make a batch of books. For this, I need a PDF file.
Respectfully, Evgeniy.
Thanks Evgeniy for your proposal, I try to document as best as possible what I implement into Annex.
Sometime I spend more time for the documentation than the time spent for the development. :D

I'm thinking since a lot of time to create a book on Annex so, yes, this is already an idea and an objective for the future.
Post Reply