# Change log

    ' Welcome to MMEdit5 kw\txt
    Changes:

    12 Sep 2022
    Added Timestamping option to MMCC (in setup menu)
    Stopped default user folder from changing when automatically opening this file.
    Added menu item to create backups of both inf files. It only backs up files as they were when last savedd on exit.

    10 Sep 2022
    Fixed bugs in Linux version relating to 'print' 'save as RTF' and 'save keyword case'
    (More work needed before Linux can print as it should - working on it)
    Added line ending selection for received data in MMCC terminal
    (This fixes bug with picomite editor in colour mode.)
    Increased allowable size of new file intro text to 50 lines

    8 Sep 2022
    Changed command file requirements. If using drag&drop, the file extension must be 'mmc'
    (More info in the help under 'the first line'. It will get it's own page soon.)
    Changed file uploading to use threads. No faster but the Windows don't freeze during uploads.
    No longer require device connected when starting file manager but device specifications still need to be correct.
    Bug with file manager and cmm2 fixed.

    2 Sep 2022
    Added \D and \H to the macros for UTC date and time. \d and \h are still local time.
    Found where the pesky right-click popup menu in MMCC terminal was hiding.
    Cosmetic improvements when selecting 'favorite' devices in MMCC

    31 Aug 2022
    Fixed bug with format code where last line did not have lineending.
    Changed AUTOSAVE upload timing to better allow for slow devices.
    Fixed bug in MMCC macros

    22 Aug 2022
    Banished another bug which caused garbage to appear at the end of some files when loaded into the editor.
    Improved VT terminal handling of chr(0). You have the option of creating it as space or nul.

    21 Aug 2022
    MMEdit crunch now leaves lines starting with # intact.
    Restored code folding which was lost when code completion was introduced.
    Bug sending some empty lines during upload fixed. Unknown when that started!

    17 Aug 2022
    After search, cursor stays at last "find". Option in inf file to return cursor to where it was at start of search.
    Removed ghost cursor from MMCC in white background mode.
    Added a new txt.tkn file for files that get displayed with minimal keyword formatting.
    Fixed syntax quick help in Linux versions. Shows in status line rather than pop-up.
    Improved handling of syntax changes between open tabs.
    changes.txt file opens in editor after a program update once only. It can still be opened from Help/Changes.

    16 Aug 2022
    You are now prompted for a nickname if the relevant box is vacant when saving connection settings in MMCC.
    You are now warned if you attempt to connect when the specifications in MMCC are blank.
    Settings text-boxes in MMCC Linux versions now white.
    Bug preventing easy setting of device specs fixed.
    Default comment colour changed to $707070. existing users will have to change it in preferences if desired.
    Changed device family list in MMCC to respect inf file (removes VGAmite)

    15 Aug 2022
    Changes to the Linux version to fix a scrolling bug. Now the syntax short help (F1) doesn't work. I have a workaround but not finished yet.
    The changes to the Linux versions might require some libraries downloaded.
    There is an 'install.txt' file in the archive explaining the requirements.
    There are also some desktop config files so you can have desktop shortcuts with icons if desired.
    The text which appears in 'new' files can be edited and saved more easily.
    No excuse for not starting every file with OPTION EXPLICIT and OPTION DEFAULT xxx

    Save for TBS' now saves mono and in [ code ] tags.
    There is still a save for TBS in colour option.

    The editor now has autocomplete for keywords. Saves lots of spelling mistakes.
    Type the first 3 characters and a list appears. Select the item with up/down arrows or mouse click. TAB or double click to paste the selection.

    6 Aug 2022
    MMCC has a new tickbox "override"
    If that is ticked, any 'target in the source file will be ignored and the manual settings used.

    If you are using 'target xxx as the first line of the code, you can now prefix the 'target with any comment such as file name
    eg:
    dim demo 'target port\COM6:115200 s\picomite
    Note that you need the ' before target.

    If you manually change the connection settings in MMCC and the port is connected, you get a warning.
    If you try and connect to a different port than any current connection either manually or through 'target directives, the current connection will be dropped first.

    You now have an option to use spaces instead of hard tabs.
    This works when typing in text.
    If you paste text that has tab characters or open a file with tabs, you will have to "format" the code to convert the tabs to spaces. The option setting is only in the inf file for now as I don't expect you to keep changing it.

    Other fixes include
    Save to RTF fixed.
    In syntax highlighting, the \ is now recognized.

V4.1.4
15 May 2021
More speed improvements.
Improved keyword list loading.

V4.1.3
6 May 2021
Wordwrap option added
Improved code formatting
Improved large file saving and loading speed

V4.1.2
17 Nov 2020
Fixed missing upload options in Advanced menu.
Fixed bug with wrong filename when transferring to device

V4.1.0
30 October 2020
All INF files for the main program combined into MMedit4.inf - Preferences will need to be reset.
Syntax help changed to a common CSV file and a series of HTML files.
MMEdit help changed to HTML
Save as HTML option added
Shift with 'load and run' saves file with it's own name on relevant devices
Find now continually cycles through the file.
Variable report has option (In INF file) to set the long line warning level. and report width.
In Chat window, option to filter VT control codes in ASCII view
In Chat window, shift+'load' uses actual file name instead of "temp.bas"
File Manger resizes directory lists when resizing window.

V4.0.1
13 Jun 2020
Small changes to better interface with CMM2
Permit #Include to function without comment marker.
V4.0.0
18 Jan 2020
start of major changes to syntax file format.
Added sub/function list
added xmodem controls in terminal
V3.8.0
16 Nov 2018
Added support for PI-cromite AUTOSAVE
Continue anyway on error reported during 'load and run'
V3.7.5
08 Aug 2018
Removed surplus lineending from saved files
CMD buffer no longer saves duplicate commands
some dialog windows now 'stay on top'
Improved connected device detection including buton in Chat window.
Added some settings to the configuration report
Numerous small bug fixes.
V3.7.4
26 Jun 2018
Improved accuracy of time setting - provided PC time is correct.
V3.7.3
02 Apr 2018
XMODEM last packet pad character changed to ^Z
V3.7.2
Save as RTF has option to print line numbers
Fixed bug in 'Find'
After 'find', 'return from sub takes you back to where you started the 'find' from.
Bookmarks now remain after a save, provided there are no 'Include' files.
Option to sort variable report
V3.7.1
Runtime EXE changed to LB Ver 4.5.1
Variable usage report now lists lines with a suspect space before (
Variable report now ignores GUI element numbers
V3.7.0
09 Apr 2017
Support for MMX added.
Various capabilities of the 'mites are saved in the syntax files.
V3.6.10
Save and Format now remember cursor line
VT100 colour commands better handling.
Added macro codes \d dat in dd/mm/yyy format
\h time in hh:mm:ss format
V3.6.9
16 Sep 2016
INCLUDEs are now processed for the *.BAZ file.
New option to format selection for posting to TheBackShed forum
New option to save selection as RTF to allow colour printing.
V3.6.8
12 May 2016
Variable report lists arrays seperately from variables with same name.
Some configuration data saved with BAS files (option in preferences)
Changing tab stop size now works more often.
V3.6.7
05 May 2016
'Load and Run' added to 'Connect' menu
Option to merge INCLUDE files on 'Load and Run'
'Macro' menu added to main edit window.
Set clock and set RTC added to macro menus
V3.6.6
04 Apr 2016
Syntax files updated
Formatting and Variable report recognise DEFINEFONT and CSUB
You can now associate BAS files with MMEdit via Preferences/Advanced
Backup options changed
V3.6.5
23 Sep 2015
Change to syntax styling/colouring
CR was being sent when changing chat modes.
HEX view mode is now 'on demand' instead of in the background.
Various code optimisations in the 'Chat' section
Run external program during load-and-run was failing if ext program ran for more than 5 seconds.
V3.6.4
14 Sep 2015
Fixed - DOS MMBasic now starts in current docs folder.
Fixed - 'Run external program' now starts in current docs folder.
Improved detection of recent versions of Windows.
Some missing keywords added syntax help files.
Find remembers 'Case' and 'Whole words'
Chat 'New' now sends ^C first.
V3.6.3
26 Aug 2015
Added options to format 'comment only' lines when 'formatting'
Fixed bug in Chat window (ASCII) which caused crashes when a specific sequence was received.
Command lines starting with ! are no longer saved in command buffer (they caused an error when retrieving)
Upgraded Liberty Basic runtime to V4.5 - fixes crashes when in VT100 terminal.
Various changes in Chat window to suit micromite Plus.
Scintilla dll upgraded to V3.6.0
V3.6.2
21 Aug 2015
Removing comments now also removes white space at the end of that line.
Option to clear all connection history
Option to exclude COM ports from selection
Link to TFTcolour.exe added to File menu
V3.6.1
13 Aug 2015
File transfer window more responsive to close requests
"Format" retains cursor position again.
Check for updates now working.
command buffer checking more robust.
cursor moves to end on line when using command buffer.
V3.6.0
04 Aug 2015
Added the ability to have any number of Syntax files.
Removed second level of syntax help
Changed help file to CHM format.
Keyword case now set whenever Format is performed instead when saving.
Colour support added to VT100 terminal.
Added 'library' support.
Added ability to change default colous in editor and VT terminal.
Added support for Micromite Plus
Added warnings for buffer overflow in terminal
Added command line buffer in terminal ASCII mode
V3.5.17
08 Jun 2015
Added the ability to upload using TeraTerm
V3.5.16
04 Jun 2015
'Print' now uses UPPERCASE keywords if that option is set in the editor
New option Program/Crunch which removes comments, blank lines and leading spaces
Added 'New from template'
V3.5.15
Some of the buttons in the Chat window were not responding.
V3.5.14
18 Jan 2015
Added option to create data files for different user.
Made it easier to close Chat window when it is overloaded by high data rates.
Hopefully fixed the "a non-continuable protection violation has occurred" messages.
V3.5.13
09 Jan 2015
Automatic clear serial connections reduced to 2 seconds
Report window was loosing focus.
Option to save temp.bas to drive A: during 'load and run' (for users without card in drive B:)
Option to save backup.bas before any 'load and run' (saved in timed backup folder)
V3.5.12
01 Jan 2015
Serial connections now automatically clear 20 seconds after closing File and Chat windows.
Button to close connections added - acts as an active connection indicator.
V3.5.11
16 Dec 2014
Variable report now lists lines with long words which might get corrupted by TBS forum
Option to replace 'smart' quotes
V3.5.10
6 Dec 2014
Fixed bug in sending ESC when in VT100 mode.
Major changes to serial port routines - now handled by an external DLL.
Maximite now remains connected until cleared instead of when chat and file windows closed.
Serial connections are retried up to 10 times if the first attempts fail.
V3.5.9
24 Nov 2014
Fixed bug in macros
Added \U and \u to macros to pulse DTR and RTS lines respectively
Added \Zxxx to macros to give xxx mS pause
V3.5.8
22 Nov 2014
Fixed bug when non existing port accessed when handshaking enabled
V3.5.7
21 Nov 2014
Fixed bug in saving settings
Fixed bug in formatting 'IF('
Fixed obscure bug in Xmodem
Better detection and reporting of failed XModem transfers
If XModem transfer fails during 'load and run', Chat window does not open
Added option to pulse DTR and RTS lines.
Added option to check for more recent version.
email address changed
V3.5.6
12 Nov 2014
Baud rate of 230400 added.
Saving changed file when selecting 'new' now keeps correct file name.
Yet another silly bug in the autosave routines fixed.
Extra CR was being sent sometimes (actually a lf but MM Basic treated it as a CR).
V3.5.5
28 Oct 2014
Changed test server code so it works under Wine.
More changes to timing for slow TCPIP links.
Option to set device to Maximite or MicroMite or auto-detect.
Scintilla DLL upgraded to V3.5.1
Added third syntax option for Micromite MK2
Manual and syntax files updated
V3.5.4
25 Oct 2014
Added better timing for slow TCPIP links.
Progress window remains open for 30 seconds after opening chat window.
Added formatting for SELECT and CFUNCTION
Added 'undo' to format etc.
V3.5.3
13 Oct 2014
Fixed bug which sometimes caused problems switching between TCPIP and Serial
V3.5.2
12 Oct 2014
Yet another silly bug in the autosave routines fixed.
V3.5.1
05 Oct 2014
Fixed error when saving with autosave.
V3.5.0
01 Oct 2014
Changed the way the cursor stays visible - should be more consistent.
Added Recent Connections - saves last 10 connections.
Added TCPIP connection option
Added connection to 'test micromite'
V3.4.20
24 Sep 2014
Added auto save function.
Format and remove indents now keep cursor location.
V3.4.19
21 Aug 2014
Fixed display of "\" in VT terminal
Improved timing for 'load and Run' with Maximites
V3.4.18
05 Aug 2014
Added move cursor right and left to VT100 terminal
Arrays now marked in variable report.
Help menu error added in V3.4.17 fixed.
Esc key now closes find window.
F2 shortcut for goto line number
F3 shortcut for show variable report
V3.4.17
26 Jul 2014
Added option to run external program
Added option to run external program automatically on 'load and run'
Variable report ignores words starting with'&' (hex and binary numbers)
Variable report no longer counts function names within the function.
Option to goto line directly from variable report.
Option to use crunched line numbers by adding '*' in 'goto line number'
Option to go to line number on error.
V3.4.16
04 Jul 2014
Added option to timestamp data in Chat window.
Set keywords case now works on Run in DOS.
Variable usage report now lists orphan variables/functions
V3.4.15
28 Jun 2014
Added NEW command to beginning of 'load and run'
Option to clear the terminal at the end of 'load and run'
Configuration report expanded.
Added build date to "About"
V3.4.14
16 Jun 2014
INCLUDE directive now more forgiving and more informative report.
Added some missing keywords to both keyword lists.
Added option to set keywords case on save.
Added Configuration report.
V3.4.13
9 Jun 2014
Find Sub/Function now finds string functions.
Fixed layout on Preferences window
Updated some toolbar icons
V3.4.12
05 Jun 2014
Fixed bug in creating new folders on the PC
Added variable to configure command timing (for slow/intermittent links)
Added option to remove blank lines, indenting and comments before 'load and run'
Improved detection of communication link.
Added commands to mark lines as comments or DEBUG lines
Changed some toolbar icons
V3.4.11
30 May 2014
Fixed a bug preventing COM ports above 32 from being saved. Now OK to COM64.
Changes to the way portable installations are created.
Updated the syntax help files to V4.5
V3.4.10
07 May 2014
Fixed bug in browsing for User help files - was missing a backslash.
V3.4.9
25 Apr 2014
Fixed bug which cause a crash with Silicon Labs CP2102 USB-serial adaptors.
Capture now saves VT terminal data as well as ASCII or HEX
When a file has been changed, option to save changes now defaults to current file name instead of asking for new name.
MicroMite syntax help updated.
V3.4.8
17 Apr 2014
Fixed bug when the error log was too large.
Added option to clear error log
V3.4.6
29 Mar 2014
Bug fix - 'Run in DOS' did not like spaces in file/path name
Bug fix - opening one line programs sometimes caused an error
V3.4.5
16 Mar 2014
Bug fixed in XMODEM file transfers from MM to PC
V3.4.4
23 Feb 2014
VT Terminal changed to suit MicroMite Beta7
Chat window horisontal scroll now visible.
MicroMite syntax help updated.
V3.4.3
14 Feb 2014
MM Edit now remembers VT terminal lines setting and Syntax setting.
VT terminal now supports underline.
Single button in editor to deploy code.
Options to set clock before auto load and run program immediately.
V3.4.2
9 Feb 2014
VT terminal 24 lines option added.
XMODEM receive changed to suit variable serial baud rates.
Maximite/MicroMite auto detected before LOADing new program.
Maximite/MicroMite auto detected when opening File Manager window.
Alternate Syntax now "MicroMite' syntax.
Fixed bug which caused some syntax highlighting to be missed.
V3.4.1
22 Jan 2014
Some support for the MicroMite added
V3.4.0
28 Sep 2013
Fixed bug in serial port detection. (Introduced in V3.3.9)
V3.3.9
18 Sep 2013
Cancel in printer selector now cancels.
Missing command from MM Basic V4.4 syntax added.
V3.3.8
28 Jul 2013
Added option to make portable installation.
V3.3.7
12 Jul 2013
Fixed problem in Preferences saving font size
22 Jul 2013
Syntax help updated to MM Basic V4.4
V3.3.6
14 Jun 2013
Copying files from the Maximite directly to the Edit window was not asking to save changes.
Quick view added to MM File.
V3.3.5
9 Jun 2013
Macros in chat window now support C type escape sequences.
V3.3.4
6 Jun 2013
Current working folder now more consistent.
Default folders no longer "C:\" which caused problems with some Windows 8 installations.
Trailing back-slash in folder names treated more reliably.
V3.3.3
18 May 2013
Search window action improved (can be left open)
Single line macros added to Chat window (Hold shift key to edit macro)
Multi line and control codes for macros to be added soon.
V3.3.2
28 Apr 2013
Code formatting lines with numbers improved.
Saving changes to syntax help improved.
Search from start was missing the first word.
Search settings and window location remembered.
V3.3.1
15 Apr 2013
Option to Scroll text in VTmode implimented - This is VERY slow.
Exiting the FIND dialog now leaves the last found text selected.
V3.3.0
12 Apr 2013
Updated the SciLexer.dll to ver 3.3.0.0
Opening MMchat window does a better job of remembering previous view mode setting.
Errors with saving preferences fixed.
Code formatting now works on lines with numbers.
Removing formatting now works on lines with numbers.
V3.2.8
31 Mar 2013
Selecting files in MM File now uses a single or double click.
Display of current directory in MM File improved.
Main edit window font size now remembered between sessions.
V3.2.7
17 Mar 2013
Menu's and buttons show state of option.
Ctrl+G (goto Line) with a blank line number reverts to goto sub.
Ctrl+B return to line that called goto sub or line number
Random options happening on start up and when Ctrl key pressed improved.
V3.2.6
15 Mar 2013
Autoindent was putting in extra indents under some conditions.
More bugs in formating removed.
Option to indent labels no longer requires a restart.
V3.2.5
14 Mar 2013
Fixed a few bugs in the format and remove formatting commands.
Better detection of lineendings when opening files.
V3.2.4
13 Mar 2013
Option to format code.
Option to change tabstop size.
Option to start with configured settings (or last used settings)
Help menu configuration changes to 'Preferences' in File menu
V3.2.3
11 Mar 2013
Option to remove leading and trailing white space.
Switching between DOS and UNIX line endings improved.
V3.2.2
9 Mar 2013
Unable to open a file in the Recent list no longer gives an error.
Selecting files in MM File now uses a single click instead of double click.
You are now asked to confirm before deleting folders.
Files missed out in 3.2.1 are now present allowing the help file list to be edited again.
V3.2.1
8 Mar 2013
Fixed bug in toggling indent guides
Added keyboard shortcuts - ^O Open, ^N New, ^F or ^H Find, ^S Save, ^G Goto line number, ^L Delete current line
Added new option to show line endings.
Options are now remembered between sessions.
V3.2.0
30 Jan 2013
Added batch file to allow file associations
Dragging a file onto the desktop shortcut will open MM Edit with that file.
Fixed a few bugs created in V3.1.9
Added a variable usage report.
V3.1.9
18 Jan 2013
Returning from subs works better (current line is placed in centre of window)
An occasoinal error on startup fixed (calls to dll changed from long to ulong)
V3.1.8
12 Jan 2013
Added Open Recent files list.
Changed syntax help. It now also works as an autocomplete.
V3.1.7
5 Jan 2013
File Manager was missing some files on the Maximite when the file list was long.
Added new commands to jump quickly to user subs and functions.
Updated Help file.
V3.1.6
30 Nov 2012
The DOS MMBasic EXE file can now have any name. eg MMBasic41.exe etc
^[K implemented in VT mode (Clear to end of line), to comply with MM Basic V4.1
V3.1.5
20 Nov 2012
Run Button now active in VT mode
When running DOS MMBasic, the start folder is set to the folder where the basic program is located.
This helps when your basic program uses file IO.
V3.1.4
11 Nov 2012
Fixed minor bug in LIST command button.
V4.0 XMODEM fix only shows when V4.0 and 4.0A are detected.
V3.1.3
3 Nov 2012
Fixed a bug that removed the command box when returning from VT mode.
Improved detecting SD card errors in File manager.
V3.1.2
30 Oct 2012
Fixed a bug in XMODEM that caused a crash during the second files transfer.
V3.1.1
25 Oct 2012
Added option to remove comments from code.
Improvements to the VT100 mode.
Updated the help file.
V3.1.0
18 Oct 2012
Improved Syntax help editing system.
Added an option to change path to DOS MMBasic. (Hold Shift key while selecting Run in DOS)
V3.01
16 Oct 2012
Improve responce if the Maximite is unplugged while MMEdit is running. It is still not a good thing to do.
Changed the Syntax help system. A user file is checked first, then the supplied help files.
Added a VT100 mode for the Chat window. It is not fully VT100 compliant and TerraTerm is prefered for heavy use.
Added a fix for MMBasic V4.0 when using Xmodem.
Added tooltips to the Chat and File windows.
Added MMBasic V4 commands to the syntax help.
Updated the help file.
V2.0.3
19 Apr 2012
Added command to run program in "DOS MM Basic"
V2.0.2
19 Mar 2012
Added PASTE command to Chat window.
Use LOAD to load programs from Edit window without line numbers (MM Basic 3.0 and above)
Use PASTE to load programs from Edit window with line numbers (MM Basic below 3.0)
V2.0.1
05 Feb 2012
Stopped displaying control codes in Syntax help under Windows XP
V2.0.0
05 Feb 2012
Another error in the line number routines found and fixed.
Code can be inserted from files.
'$INCLUDE: directive added to insert code files.
Sections of code can be saved.
Users can add their own help documents to the help menu.
Users can edit the syntax help files.
Maximite syntax help files updated to MM Basic V3.1
V1.5.5
13 Jan 2012
MMfile now handles "PRESS ANY KEY" correctly.
MMFile file lists handle MM Basic V3.0 list order (size before name).
Labels now agree with MM Basic V3.0 style
You can now send code between the code edit window and files on the Maximite without having to save to a file on the PC first.
Loading a program from the edit window using MM Chat now uses the AUTO command.
Search/Replace is reset to start of file when the end is reached.
V1.5.4
04 Jan 2012
Changed serial port search routine to avoid needing external resources.
V1.5.3
26 Dec 2011
Added print command, Full Search/Replace, Physical line number option, Auto-indent option
If the maximite is not found, a search for likely ports is run.
Number of lines of code is displayed.
line labels are no longer case sensitive.
V1.5.2
21 Dec 2011
Updated the SciLexer.dll - White Space dot now bigger and shaded background.
Quotes in syntax help files fixed.
V1.5.1
Option to switch syntax help between Maximite and Duinomite.
V1.5.0
17 Dec 2011
Tidied up the passing routines to fix a number of errors.
Added colour syntax, Keywords to upper case, white space markers, Indent markers
Added buttons for most common actions.
V1.0.2
01 Dec 2011
Fixed a problem with "Browse for Folder" missing the final "\"
Changed XMODEM timing to improve file transfer to the Maximite on slower PCs
Fixed a display issue in Maximite file lists when running XP
V1.0.1
29 Nov 2011
Changed PC file name handling to better support long file names.
Stripped illegal characters when converting to 8.3 file names.
V1.0.0
26 Nov 2011
Added MM File Master with XMODEM to manage files on the Maximite.
V0.9.8
18 Nov 2011
Added HEX mode - you can toggle the output between text and HEX views.
V0.9.7
15 Nov 2011
Added labeling for serial and I2C commands
Fixed a couple of parsing errors.
V0.9.6
6 Sep 2011
Fixed crash when saved document path was a network share. If you use network shares, map to a drive letter!
V0.9.5
1 Sep 2011
Icon changed
Trying to open the Chat or Configure windows when already open won't cause a disaster.
Added capture to file in chat window
V0.9.4
27 Aug 2011
Fixed error where the last character was sometimes dropped of the end of the line when processing.
Added 'New' and 'Save as' items in the File menu.
Buttons and text boxes are still readable when user has 'Make text and other items larger' set in Windows display properties.
Enter key works in Chat command window (same as pressing 'Send')
Chat window buttons expanded in number and function.
V0.9.3
21 Aug 2011
Fixed error when one of the inf files was not correctly initialised.
V0.9.1
17 Aug 2011
The first release.
Ready for serious testing.
Insert and strip line numbers working.
Talking to Maximite working.

Last edited: 12 September, 2022