1 USING: editors io.files io.launcher kernel math.parser
2 namespaces sequences windows.shell32 make io.pathnames ;
5 : notepad2-path ( -- path )
6 \ notepad2-path get-global [
7 windows-directory "system32\\notepad.exe" append-path
8 [ "notepad.exe" ] unless*
11 : notepad2 ( file line -- )
14 "/g" , number>string , ,
15 ] { } make run-detached drop ;
17 [ notepad2 ] edit-hook set-global