1 ! Copyright (C) 2007 Clemens F. Hofreither.
2 ! See http://factorcode.org/license.txt for BSD license.
3 ! clemens.hofreither@gmx.net
4 USING: editors io.standard-paths kernel make math.parser
5 namespaces sequences system ;
9 scite editor-class set-global
13 HOOK: find-scite-path os ( -- path )
15 M: unix find-scite-path "scite" ?find-in-path ;
17 M: windows find-scite-path
19 "Scintilla Text Editor"
20 "SciTE Source Code Editor"
21 } "scite.exe" find-in-applications
22 [ "scite.exe" ] unless* ;
24 M: scite editor-command ( file line -- cmd )
27 scite-path get [ find-scite-path ] unless* ,
29 number>string "-goto:" prepend ,