A sample of WinEd using Colorize.f

: entries-init ( -- )                \ first NULL out the entire buffer
                entry-buffer entry-size erase
                                      
\ then initialize any non-0 entries
                entry-init-link
               
BEGIN   @ ?dup
               
WHILE   dup cell+ @ over 2 cells+ @ swap
                        entry-max-items 0
                    
  DO      2dup i entry-#bytes * entry-buffer + + !
                      
LOOP    2drop
               
REPEAT ;

entries-init  
\ initialize the buffer now so we can use it

initialization-chain chain-add entries-init

FALSE value editAsBinary?       \ should we edit this file as a binary file?

  16 CONSTANT
BLOCKLINE-SIZE \ the length of each line of a binary/block file
  16 CONSTANT
BLOCK-LINES        \ lines in a block
1024 CONSTANT
BLOCK-SIZE        \ a Forth block size
As you can see we colorize words by looking up their types in a file named Colorize.f   Fore all words that follow a Colon are dark blue.  In this example I also made htem bold.  Bold is on the wish list.  It alters the spacing of the characters and causes the cursor location to be confused.  But it does work well  Another example is all comments following a \ are in light green.
I am working on a feature that uses Comment: and Comment; to mark texd that is between these two words to be rendered in a red to indicate that this code is note in the dictionary.
Hosted by www.Geocities.ws

1