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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
Ensure you save files with spaces and not tabs in both editors.
Last edit: Anobium 2017-11-30
@work I use Notepadd++ too, in Linux I'm using Geany. Because GCB is in Syntax very similar to freebasic I use an external Code Beautifier as Formatter. Its a Freebasic Script working in the Commandline And I have it congiured as Formatter in Geany, This should be work for Notepad++ also.
https://www.freebasic-portal.de/downloads/ides-fuer-freebasic/fbeauty-bas-160.html
English: https://www.freebasic.net/forum/viewtopic.php?p=146522#p146522
Last edit: bed 2017-11-30
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:
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.
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.
Could the fbide work with gcb? I only used fb with rpi and then geany to edit code. What's wrong with gcb ide?