factor/extra/editors/notepadpp/notepadpp.factor

16 lines
373 B
Factor
Raw Normal View History

2007-12-09 12:51:25 -05:00
USING: editors io.files io.launcher kernel math.parser
namespaces windows.shell32 ;
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 [
program-files "notepad++\\notepad++.exe" path+
] unless* ;
2007-11-24 21:48:29 -05:00
: notepadpp ( file line -- )
[
2007-12-09 12:51:25 -05:00
notepadpp-path % " -n" % # " " % %
2007-11-24 21:48:29 -05:00
] "" make run-detached ;
[ notepadpp ] edit-hook set-global