1 USING: editors io.files io.launcher kernel math.parser
2 namespaces sequences io.paths.windows make ;
5 : notepadpp-path ( -- path )
6 \ notepadpp-path get-global [
7 "notepad++" t [ "notepad++.exe" tail? ] find-in-program-files
10 : notepadpp ( file line -- )
13 "-n" swap number>string append , ,
14 ] { } make run-detached drop ;
16 [ notepadpp ] edit-hook set-global