home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,542 of 117,927   
   Anton Ertl to albert@spenarnc.xs4all.nl   
   Re: Extensions for Forth files.   
   06 Jun 24 06:16:46   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   albert@spenarnc.xs4all.nl writes:   
   >It could be much more. If lina is the official Forth compiler installed   
   >and you have hello.4th   
   >you could say   
   >    make hello   
   >That would be similar as having hello.c and saying   
   >   make hello   
      
   What do you mean with "official Forth compiler installed"?  In order   
   for something like this to work, Forth systems would also need to   
   agree on a common OS-command-line interface.   
      
   >Delivering syntax coloring to editors could be the next step.   
      
   Various editors have had syntax highlighting for Forth code for many   
   years.  I use emacs, and gforth.el's Forth mode (based on Goran   
   Rydqvist's forth.el) has had syntax highlighting for a long time; here   
   we have it:   
      
   |commit a0117f0158a4cb57bcd61c03cd3285508cae229c   
   |Author: Bernd Paysan    
   |Date:   Sat Mar 18 21:27:38 2000 +0000   
   |   
   |    Added syntax highlighting for Forth (not perfect yet)   
      
   When my students present their programs, they usually use code (the   
   one by MS) or vim, and both have syntax highlighting for Forth; in   
   some cases the syntax highlighting seems to be for a different   
   language, though.  I guess this is the use of file extensions with the   
   highest impact in practice.  So what file extensions do the editors   
   use?   
      
   When you have the development version of Gforth installed, you get:   
      
   emacs: .fs .fth .4th .fb (where .fb is for block files)   
      
   I leave it to other participants to list the extensions that turn on   
   Forth syntax highlighting for their favourite editor.   
      
   - anton   
   --   
   M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html   
   comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html   
        New standard: https://forth-standard.org/   
      EuroForth 2023: https://euro.theforth.net/2023   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca