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