1 ! Copyright (C) 2007 Clemens F. Hofreither.
2 ! See https://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 ;
10 editor-class [ scite ] initialize
14 HOOK: find-scite-path os ( -- path )
16 M: unix find-scite-path "scite" ?find-in-path ;
18 M: windows find-scite-path
20 "Scintilla Text Editor"
21 "SciTE Source Code Editor"
22 } "scite.exe" find-in-applications
23 [ "scite.exe" ] unless* ;
25 M: scite editor-command
28 scite-path get [ find-scite-path ] unless* ,
30 number>string "-goto:" prepend ,