Menu

Rough GCbasic highlighter for KATE editor

Fulvio _
2023-02-03
2023-02-05
  • Fulvio _

    Fulvio _ - 2023-02-03

    Hello everybody
    Even I installed GCbasic Studio in Linux that works by the help of Wine. I preferred to manage with my favorite editor Kate.

    So I found the keyword list and I mixed with what works for freeBasic one. It won't take much to create an hot key to launch the compiler and other step as SynWrite doing.
    To make that effective there's some preparation like this page is explaining.

    Any volunteer that wants improve the highlighter is very welcome. For my needs I'm currently satisfied. Probably there are other keywords to be defined. I made the modification in an afternoon.

    There might be a difficulty to make Kate to associate to the [namefile].gcb if synwrite was installed before. But this mostly happening with Windows OS.

     

    Last edit: Fulvio _ 2023-02-03
  • Anobium

    Anobium - 2023-02-03

    ReservedWords.DAT should be your source. From this file we manage all the components.

    I looked at Kate as the replacement editor but in the end we have used Code.exe but very well done. Very pleased it works for you.


    Some of the advanced features are not implemented under pure Linux. At some point someone will have the passion to resolve. :-)

     
  • Fulvio _

    Fulvio _ - 2023-02-03

    I found the list on the lexlib.lxl file, which is almost the same as the file you mentioned.

    I expressed rough on the title, as the fact some behavior is not well tailored, yet.

    Kate is offered for both platform so the editor goodness is shared even in Windows OS.
    There could be the chance to make similar chance on the Notepad++.

    I got used with kate and that is all it would need to write a source file. The ancillary options. in Linux, are more naturally carried out on the CLI, whereas the Windows users are are less skilled.

     
    • Anobium

      Anobium - 2023-02-03

      The master file is ReservedWords.DAT. Everything is meant to be derived from there.

       
    • Chris Roper

      Chris Roper - 2023-02-03

      There could be the chance to make similar chance on the Notepad++.

      That would be great. I currently use a generic BASIC highlighter in Notepad++ but one tailored to GCBASIC would be a godsend.

      I removed GCStudio as soon as I realized that it was Microsoft "Visual Studio Code", But it still has hooks threwout my machine and wont even open a text document now without requesting that I reinstall Visual studio.

      Hopefully reinstalling Notepad++ will get rid off all the forced and unwanted file associations that the Microsoft Code created.

       
      • Fulvio _

        Fulvio _ - 2023-02-05

        GCBASIC would be a godsend.

        I had tried and I messed up another basic highlighter, but I should get it close to expectations and solve the mess :)

        The most problem is that is just a course attempt and something is pretty unfinished.
        For example the theme is hard to settle (maybe asking to N++ how to). I like dark theme, but the result is not followed within the language highlighter. So every detail I had to set it on its own.


        EDIT

        I got a rough highlighter for Notepad++ (See Attachment)
        The procedure should be:
        1. unpack the file
        2. copy the file on the userdefineLang folder
        3. Adjust the styles according the wanted background or theme. It seems that is not available in the general form. So if the default background is white some highlight is badly contrasted. To do that it will take to go to the menu Language >> User Defined Language and select GCbasic. For every tab it would need to adjust the wanted style for the foreground an background (if necessary)

        Second method:
        1. Goto menu Language >> User Defined Language then find the button to import the language.
        2. Can see immediately every changes on the definitions on a open project.
        3. Adjust colors as wanted.

        Launching the compiler won't be such hard. It just take to define a batch dos command and stick to some Notepad++ hot key.

         

        Last edit: Fulvio _ 2023-02-05

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.