Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #59246

Re: Editor for Forth

From Cecil Bayona <cbayona@cbayona.com>
Newsgroups comp.lang.forth
Subject Re: Editor for Forth
Date 2017-05-15 00:03 -0500
Organization A noiseless patient Spider
Message-ID <ofbck0$p89$1@dont-email.me> (permalink)
References (1 earlier) <baa57e45-d37e-461d-a0c1-80aae32a8ec6@googlegroups.com> <of4p53$jlu$1@dont-email.me> <a742830f-2bc5-4934-9442-d0a7e7052583@googlegroups.com> <a7e43746-d763-448b-8f86-8e856685040e@googlegroups.com> <ofb5iu$a7b$1@dont-email.me>

Show all headers | View raw


On 5/14/2017 10:02 PM, rickman wrote:
> On 5/14/2017 5:28 PM, peter.m.falth@gmail.com wrote:
>> On Sunday, 14 May 2017 16:09:14 UTC+2, Mark C  wrote:
>>> On Friday, 12 May 2017 17:54:03 UTC+1, rickman  wrote:
>>>> On 5/12/2017 7:50 AM, Mark C wrote:
>>>>> On Wednesday, 10 May 2017 23:07:35 UTC+1, Cecil - k5nwa  wrote:
>>>>>> Which programmers editor would be recommended for use with Forth? I
>>>>>>  would prefer something free or at least under $100 as my funds are
>>>>>>  rather limited.
>>>>>>
>>>>>> I would like a programmers editor with you basic features;
>>>>>>
>>>>>> Able to open more than one file at a time. Print listings with line
>>>>>> numbers. Understand Forth so it can autocomplete structures such as
>>>>>> IF etc. Be able to use color to identify Forth Words, numbers,
>>>>>> etc. If I have to pay money then I would like it to know how to
>>>>>> interface to at least VFX, and SwiftForth.
>>>>>>
>>>>>> There are some free programmer editors that can take a file to
>>>>>> customize it to a language any suitable for Forth use?
>>>>>>
>>>>>> Any thoughts or preferences?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -- Cecil - k5nwa
>>>>>
>>>>> I've written Forth syntax highlighters for gedit, jEdit, UltraEdit
>>>>> and Kate. They should be part of their respective packages - if not,
>>>>> they are available here:
>>>>>
>>>>> http://www.dibsco.co.uk/forth/syntax/gedit
>>>>>
>>>>> The file extension '.4th' is used by most of them (the gedit
>>>>> developers specifically asked me to remove '.fs' as it clashed with
>>>>> Fortran).
>>>>>
>>>>> I have another one in development for SciTE/Scintilla, but it seems
>>>>> to be taking me an eternity to get round to finishing it :-)
>>>>
>>>> I typically use '.f' for forth source files.  Is that also used for
>>>> Fortran?
>>>
>>> The extension '.f' is used for Fortran and '.fs' is used for FSharp. 
>>> I've found that the safest way to avoid clashes is to use '.4th' and 
>>> '.forth'.
>>>
>>>>
>>>> I'm having some problems getting up the learning curve with SciTE.  Can
>>>> you point me to any teaching materials?  I've found info on the
>>>> properties files, but it is written to explain the commands rather than
>>>> showing how to do various things.  I'm having trouble controlling the
>>>> font used and the mono/proportional flag.  Is there an explanation of
>>>> how this works?  Does setting the monospace feature only display the
>>>> font.monospace for all items while having it off allows multiple type
>>>> faces to be used?  Any idea what the list of type faces is?  I'd 
>>>> like to
>>>> explore alternate monospaced fonts.  Or maybe I'm using tabs 
>>>> incorrectly?
>>>
>>> I have been doing quite a bit of work with SciTE, but haven't looked 
>>> at the fonts at all.
>>>
>>> I should point out that the Forth highlighter for SciTE doesn't work 
>>> by default. It won't match any keywords at all, so almost everything 
>>> is highlighted as 'Idenitifer' (which seems to be the default state 
>>> for anything that is not recognised). The Forth lexer converts the 
>>> incoming text to lowercase, but the keywords in the forth.properties 
>>> file are all in uppercase - so they never match. You can edit 
>>> forth.properties and convert the keywords to lowercase, but there are 
>>> still other issues with the highlighting:
>>>
>>>     - words starting with characters other than a-z are not 
>>> highlighted correctly.
>>>     - floating point numbers are not highlighted correct (as per the 
>>> ANS-94 regex definition)
>>>
>>> It is also worth noting that:
>>>
>>>     - it highlights control words separately, which doesn't appear to 
>>> be a common approach across other language highlighters that I have 
>>> looked at.
>>>     - it provides highlighting for an 'unknown' dialect of Forth.
>>>     - it doesn't support code folding.
>>>
>>> The new version that I am currently working on supports the ANS-94 
>>> standard, including all wordsets, and also provides code folding. I 
>>> have looked at implementing word autocompletion, but I'm not sure 
>>> whether it will operate correctly. Most syntax highlighting systems 
>>> that I have looked at are much friendlier to a C-style syntax and are 
>>> tricky to configure for use with a more free-form language like Forth.
>>>
>>> Regards
>>>
>>> Mark
>>
>> I have rewritten the forth lexer in SciTe to support context sensitive
>> coloring. I have used this for many years and really like it.
>> I did look at implementing folding but found that I would not use it.
>>
>> As the lexer is written in C++ it is quite easy to modify and customize
>> to your needs. Even for a non C++ programmer like me!
>>
>> If you like a copy (source or compiled) please tell me
> 
> Sure, you will need to give me explicit instructions on how to use it. 
> I'm running Windows 8 presently.
> 
I would like a copy also to use when testing the editors.


-- 
Cecil - k5nwa

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-10 17:07 -0500
  Re: Editor for Forth Mark Wills <markwills1970@gmail.com> - 2017-05-10 15:47 -0700
    Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-10 18:52 -0500
  Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-10 19:06 -0400
    Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-10 19:05 -0500
      Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-10 20:42 -0400
        Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-10 19:59 -0500
          Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-10 21:11 -0400
  Re: Editor for Forth Joel Rees <joel.rees@gmail.com> - 2017-05-10 17:36 -0700
    Re: Editor for Forth Mark C <mdcorbin@googlemail.com> - 2017-05-14 07:33 -0700
  Re: Editor for Forth Paul Rubin <no.email@nospam.invalid> - 2017-05-10 20:39 -0700
    Re: Editor for Forth Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-11 07:09 +0200
      Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 00:57 -0500
        Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 09:15 +0300
          Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 01:35 -0500
            Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 09:49 +0300
      Re: Editor for Forth Paul Rubin <no.email@nospam.invalid> - 2017-05-10 23:42 -0700
        Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 01:53 -0500
          Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 09:59 +0300
          Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-11 04:32 -0400
            Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 05:52 -0500
              Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 14:07 +0300
                Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 07:10 -0500
              Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-11 14:10 -0400
    Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 00:15 -0500
      Re: Editor for Forth Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-11 07:53 +0200
        Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 01:20 -0500
      Re: Editor for Forth Paul Rubin <no.email@nospam.invalid> - 2017-05-10 23:44 -0700
        Re: Editor for Forth Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-11 08:57 +0200
      Re: Editor for Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-11 04:34 -0500
        Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 06:29 -0500
          Re: Editor for Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-11 07:05 -0500
          Re: Editor for Forth Joel Rees <joel.rees@gmail.com> - 2017-05-12 08:05 -0700
            Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-12 19:34 -0500
              Re: Editor for Forth Joel Rees <joel.rees@gmail.com> - 2017-05-12 18:21 -0700
                Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-12 21:53 -0500
                Re: Editor for Forth Joel Rees <joel.rees@gmail.com> - 2017-05-12 23:37 -0700
                Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-13 02:50 -0500
                Re: Editor for Forth Joel Rees <joel.rees@gmail.com> - 2017-05-15 00:11 -0700
        Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-11 14:41 -0400
          Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 15:44 -0500
            Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-12 10:52 +0300
          Re: Editor for Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-12 02:28 -0500
            Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-12 12:43 -0400
              Re: Editor for Forth Julian Fondren <julian.fondren@gmail.com> - 2017-05-12 10:17 -0700
                Re: Editor for Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-13 04:39 -0500
    Re: Editor for Forth Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2017-05-11 08:33 +0100
  Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 07:09 +0300
    Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-11 00:22 -0500
      Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-11 08:35 +0300
      Re: Editor for Forth JUERGEN <epldfpga@aol.com> - 2017-05-11 00:46 -0700
        Re: Editor for Forth JUERGEN <epldfpga@aol.com> - 2017-05-11 00:50 -0700
  Re: Editor for Forth humptydumpty <ouatubi@gmail.com> - 2017-05-11 00:32 -0700
  Re: Editor for Forth stephen@mpeforth.com (Stephen Pelc) - 2017-05-11 08:03 +0000
  Re: Editor for Forth Mark C <mdcorbin@googlemail.com> - 2017-05-12 04:50 -0700
    Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-12 12:54 -0400
      Re: Editor for Forth Mark C <mdcorbin@googlemail.com> - 2017-05-14 07:09 -0700
        Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-14 13:48 -0400
          Re: Editor for Forth Mark C <mdcorbin@googlemail.com> - 2017-05-14 11:10 -0700
        Re: Editor for Forth peter.m.falth@gmail.com - 2017-05-14 14:28 -0700
          Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-14 23:02 -0400
            Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-15 00:03 -0500
            Re: Editor for Forth peter.m.falth@gmail.com - 2017-05-15 13:33 -0700
  Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-12 19:35 -0500
    Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-12 21:16 -0400
    Re: Editor for Forth Raimond Dragomir <raimond.dragomir@gmail.com> - 2017-05-12 22:53 -0700
      Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-13 02:51 -0400
        Re: Editor for Forth Raimond Dragomir <raimond.dragomir@gmail.com> - 2017-05-13 00:02 -0700
          Re: Editor for Forth albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-13 13:36 +0200
      Re: Editor for Forth Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-13 09:09 +0200
      Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-13 02:41 -0500
        Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-13 10:31 -0400
  Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-20 16:43 -0500
    Re: Editor for Forth Paul Rubin <no.email@nospam.invalid> - 2017-05-20 15:32 -0700
      Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-20 18:57 -0400
        Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-20 18:16 -0500
          Re: Editor for Forth Paul Rubin <no.email@nospam.invalid> - 2017-05-20 16:40 -0700
            Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-20 22:04 -0400
              Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-21 07:04 +0300
        Re: Editor for Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 06:53 +0000
          Re: Editor for Forth Ron Aaron <rambamist@gmail.com> - 2017-05-21 10:24 +0300
            Re: Editor for Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 14:54 +0000
          Re: Editor for Forth albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-21 20:11 +0200
            Re: Editor for Forth rickman <gnuarm@gmail.com> - 2017-05-21 14:23 -0400
          Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-21 13:23 -0500
      Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-20 18:15 -0500
      Re: Editor for Forth Cecil Bayona <cbayona@cbayona.com> - 2017-05-20 18:33 -0500

csiph-web