1 ! Basic SciTE integration for Factor.
3 ! By Clemens F. Hofreither, 2007.
4 ! clemens.hofreither@gmx.net
6 ! In your .factor-rc or .factor-boot-rc,
7 ! require this module and set the scite-path
8 ! variable to point to your executable,
11 USING: io.files io.launcher kernel namespaces math
12 math.parser editors sequences windows.shell32 make ;
15 : scite-path ( -- path )
16 \ scite-path get-global [
17 program-files "wscite\\SciTE.exe" append-path
20 : scite-command ( file line -- cmd )
25 "-goto:" swap number>string append ,
28 : scite-location ( file line -- )
29 scite-command run-detached drop ;
31 [ scite-location ] edit-hook set-global