Here is a text editor that I built over the holidays as a learning exercise in NextBASIC. It is mostly a proof of concept, and it has some limitations (and probably a few bugs). The major limitation is that it can only handle small files - no more than 70 paragraphs, each with up to 256 characters, and a maximum total size of 16 kB.
One thing to note before you try this is that since I use the SAVE command in BASIC, files saved with this program will have the +3 header, which can cause problems. For example, the dot command .txt2bas can't process files with this header. Also, if you view a file with the .more command, it will display the header. Maybe I can find a way to save files with a machine code routine without the header, but I need to investigate that.
Edit: The latest version is available here: https://github.com/MagnusKrook/ZXNext-Editor
A BASIC text editor
Moderator: Programming Moderators
A BASIC text editor
- Attachments
-
- Editor 0.1.zip
- (12.37 KiB) Downloaded 17 times
Last edited by Magnus on Sat Jan 16, 2021 10:15 am, edited 1 time in total.
Re: A BASIC text editor
A small update to version 0.2, which now uses the EXTRACT dot command to remove the +3 header from saved files (this can be turned off by setting RemoveHeader=0 on line 140). Also, some bug fixes.
- Attachments
-
- Editor 0.2.zip
- (13.3 KiB) Downloaded 15 times
Re: A BASIC text editor
Hi!
Oh, very nice. Just tested the 0.2 version - looks promising. As someone who once wrote an text editor in Sinclair BASIC on a classic 3,5 MHz machine I'm sure a Next can do that much better (and faster). Thanks for the effort!
Oh, very nice. Just tested the 0.2 version - looks promising. As someone who once wrote an text editor in Sinclair BASIC on a classic 3,5 MHz machine I'm sure a Next can do that much better (and faster). Thanks for the effort!
48K/+/+/+128K/Next
Re: A BASIC text editor
Thank you, glad you like it

Re: A BASIC text editor
I have made a new version (0.3) with basic mouse support (you can place the cursor in the text with the mouse). There is also a separate .bas file with procedures, which are loaded into a separate bank to free up some memory for the main program.
The program is available here: https://github.com/MagnusKrook/ZXNext-Editor
The program is available here: https://github.com/MagnusKrook/ZXNext-Editor
Who is online
Users browsing this forum: No registered users and 1 guest