PicoMite 6.03.00 betas


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12154
Posted: 09:03am 04 May 2026      

V6.03.00B5

PicoMiteRP2040V6.03.00B5.zip
PicoMiteRP2350V6.03.00B5.zip

Tweaks USB mouse doubleclick timings
Fixes bug where the editor didn't re-enable autowrap in the serial terminal
Fixes bug in multiline command handling (thanks Gerry)

The stepper command now supports 4 axis by adding the A axis
Stepper_Reference.pdf

New editor function F12 will "beautify" your code:

Summary:
Beautify in the Editor (not PICOMITEMIN) walks the program line-by-line classifying each line's leading keyword to compute indentation (2 spaces per level).
Recognised constructs: IF…THEN/ELSE/ELSEIF/ENDIF/END IF (multi-line only — single-line IF with anything after THEN doesn't open a block), FOR/NEXT, DO[...]/LOOP[...], SELECT CASE/CASE[/ELSE]/END SELECT, FUNCTION/END FUNCTION, SUB/END SUB, and TYPE/END TYPE (not PICOMITEMIN).
F12 in the main editor switch now invokes it (no-op on PICOMITEMIN builds), marks the buffer changed, redraws, repositions cursor at top, and shows BEAUTIFIED.
Footer help strings (≥55 cols) now advertise F12:Beautify/F12:Btfy.
Blank lines are removed with the exception that a single blank line is inserted before each subroutine or function definition

Notes / limitations to be aware of when using:

Cursor returns to top of file after beautify
comment-only lines indent at the current level.
Labels and old-style line numbers at line start are not detected (the keyword test runs on the very first non-whitespace token).
The classifier is purely first-token based — IF…:ENDIF written as a single line with : separators isn't detected as multi-line.