Fixed an accidental stack overflow error

...caused by regex search & replace......
Added command-line support for opening files

The editor can now open files by dragging them onto the .exe, or using
"Open With..." in the context menu