Menu

Notepad ++ to GCB formatting

Help
Moto Geek
2017-11-30
2017-12-02
  • Moto Geek

    Moto Geek - 2017-11-30

    I use notepad++ a lot for writing code. I use tabs to "format" the code to make it more understandable, for instance, in an if, then, end if statement, I like to indent the code between then and end if, etc. When I open or copy and paste the code in to the GCB IDE, all the formatting seems to go away and the code doesn't look so good. I have tried to mess with the IDE settings, but can't seem to find what to set to keep the formatting in tact. Any ideas out there?

     
    • Anobium

      Anobium - 2017-11-30

      Ensure you save files with spaces and not tabs in both editors.

       

      Last edit: Anobium 2017-11-30
  • Hugh Considine

    Hugh Considine - 2017-12-02

    You could also keep using Notepad++. I do often this because I prefer tabs personally, and with the syntax highlighting set to VB it highlights most stuff.

    For calling the compiler, I normally use the command line. But you can also run it from the Run menu in Notepad++, this command works on my computer to generate a hex file:

    D:\GCBASIC\GCBASIC\trunk\gcbasic.exe /A:gcasm /K:A /V "$(FULL_CURRENT_PATH)"
    

    You can save this to the Run menu, and associate a shortcut key if you like. You could link Notepad++ to any of the batch files in the GCB IDE, or add another shortcut to call a programmer tool directly.

     
  • Moto Geek

    Moto Geek - 2017-12-02

    Thanks for that Hugh, as I like to keep using tabs. I just tried loading some code on to github and it seems it likes the spaces also to keep the formatting, so it seems that spaces are in the cards for me.

     
  • stan cartwright

    stan cartwright - 2017-12-02

    Could the fbide work with gcb? I only used fb with rpi and then geany to edit code. What's wrong with gcb ide?

     

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.