2007-12-09 12:51:25 -05:00
|
|
|
USING: editors io.files io.launcher kernel math.parser
|
2008-09-12 11:36:00 -04:00
|
|
|
namespaces sequences windows.shell32 make ;
|
2007-11-24 23:44:47 -05:00
|
|
|
IN: editors.notepadpp
|
2007-11-24 21:48:29 -05:00
|
|
|
|
2007-12-09 12:51:25 -05:00
|
|
|
: notepadpp-path
|
|
|
|
\ notepadpp-path get-global [
|
2008-03-19 20:15:32 -04:00
|
|
|
program-files "notepad++\\notepad++.exe" append-path
|
2007-12-09 12:51:25 -05:00
|
|
|
] unless* ;
|
|
|
|
|
2007-11-24 21:48:29 -05:00
|
|
|
: notepadpp ( file line -- )
|
|
|
|
[
|
2008-01-24 02:50:40 -05:00
|
|
|
notepadpp-path ,
|
|
|
|
"-n" swap number>string append , ,
|
2008-01-29 12:41:12 -05:00
|
|
|
] { } make run-detached drop ;
|
2007-11-24 21:48:29 -05:00
|
|
|
|
|
|
|
[ notepadpp ] edit-hook set-global
|