16 lines
		
	
	
		
			409 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			409 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
USING: editors io.files io.launcher kernel math.parser
 | 
						|
namespaces sequences windows.shell32 ;
 | 
						|
IN: editors.editplus
 | 
						|
 | 
						|
: editplus-path ( -- path )
 | 
						|
    \ editplus-path get-global [
 | 
						|
        program-files "\\EditPlus 2\\editplus.exe" path+
 | 
						|
    ] unless* ;
 | 
						|
 | 
						|
: editplus ( file line -- )
 | 
						|
    [
 | 
						|
        editplus-path , "-cursor" , number>string , ,
 | 
						|
    ] { } make run-detached drop ;
 | 
						|
 | 
						|
[ editplus ] edit-hook set-global
 |