"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "vil96w32/spell.rc" of archive vile-w32.zip:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 ; $Id: spell.rc,v 1.8 2007/08/08 23:26:21 tom Exp $
    2 
    3 store-procedure SpellFilter "Highlight misspelled words in the current buffer"
    4 	; The spell filter uses an external program to lookup misspelled words.
    5 	; Usually that is "spell -l", but you can override this by setting the
    6 	; $VILE_SPELL_FILT environment variable.
    7 	~if &filter "spell"
    8 		~local $filtername
    9 		~local $curcol $curline $filtermsgs
   10 		~local %original
   11 
   12 		setv %original=$cbufname
   13 		~if &isa buffer '[Filter Messages]'
   14 			~quiet kill-buffer '[Filter Messages]'
   15 		~endif
   16 		~if &isa buffer '[Spelling Errors]'
   17 			~quiet kill-buffer '[Spelling Errors]'
   18 		~endif
   19 		set filtermsgs
   20 		HighlightClear
   21 		~hidden attribute-directly end-of-file "spell"
   22 		; don't let anyone else write there, e.g., buffer-hooks
   23 		set nofiltermsgs
   24 		~if &isa buffer '[Filter Messages]'
   25 			~quiet other-buffer-rename '[Filter Messages]' '[Spelling Errors]'
   26 			~quiet error-buffer '[Spelling Errors]'
   27 		~endif
   28 	~else
   29 		~hidden goto-beginning-of-file
   30 		~hidden attribute-from-filter end-of-file "vile-spell-filt"
   31 	~endif
   32 ~endm
   33 bind-key SpellFilter ^X-i