Wordpad integration (it's default installed on windows, handles \n, but no line numbers)

release
Doug Coleman 2007-12-05 01:21:52 -06:00
parent 197d1e3d78
commit adb540e485
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
Doug Coleman

View File

@ -0,0 +1 @@
Wordpad editor integration

View File

@ -0,0 +1,13 @@
USING: editors hardware-info.windows io.launcher kernel
math.parser namespaces sequences windows.shell32 ;
IN: editors.wordpad
: wordpad ( file line -- )
[
\ wordpad get-global % drop " " % %
] "" make run-detached ;
program-files "\\Windows NT\\Accessories\\wordpad.exe" append
\ wordpad set-global
[ wordpad ] edit-hook set-global