I think Dave (of Dave's Garage) did this just a few months ago... I think there were some short-comings regarding wide character support (BoM detection, etc)... but it was pretty much a working Notepad.exe implementation.
FWIW, you can also get the new Edit implementation that's built with Rust and the Windows exe is 250kb...
FWIW, you can also get the new Edit implementation that's built with Rust and the Windows exe is 250kb...