QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: hanness on September 09, 2021, 01:48:38 pm
-
I noticed that if I post a QB64 program to GitHub, GitHub indicates that the program is a FreeBasic program. Anyone know if there is a way to change this to accurately display as QB64?
I'm brand new on GitHub so I'm just now trying to figure out little stuff like this.
-
All of my programs get recognized as VB.
-
Despite QB64's and FreeBasic's modern syntaxes, in the core both were born out of the wish to bring QuickBASIC back to life, so they do share the same, ahem, basic syntax.
You will see some QB64 projects being tagged as if they were VBA too, sometimes VB.net, for the same reasons.
There's a few hoops and loops to add QB64 as an official language to GitHub. For anyone willing to take the challenge: https://github.com/github/linguist/blob/master/CONTRIBUTING.md
-
Now that FreeBasic made it there, it shall be much easier to take it from what they've already added and derive from their work.
https://github.com/github/linguist/search?q=freebasic
-
Thanks!
-
@FellippeHeitor, reading the links you provided on GitHub, it talks about adding new language extensions.
FreeBASIC shares the same extension (.BAS) with QB64, and for that matter, all other BASIC dialects.
If we want to add QB64 as a programming language to GitHub, will we not have to create a file extension unique to it? Like .Q64? And will the IDE need to be changed to recognize this automatically?
I know I can use any extension I want to, so is there a preferred file extension for the purposes of GitHub? From what I read, they want it to be used by at east 200 unique user repositories (see: https://github.com/github/linguist/blob/master/CONTRIBUTING.md#adding-an-extension-to-a-language (https://github.com/github/linguist/blob/master/CONTRIBUTING.md#adding-an-extension-to-a-language))
Despite QB64's and FreeBasic's modern syntaxes, in the core both were born out of the wish to bring QuickBASIC back to life, so they do share the same, ahem, basic syntax.
You will see some QB64 projects being tagged as if they were VBA too, sometimes VB.net, for the same reasons.
There's a few hoops and loops to add QB64 as an official language to GitHub. For anyone willing to take the challenge: https://github.com/github/linguist/blob/master/CONTRIBUTING.md
-
The extension is only one of the factors involved in figuring out which language a file is written in. They use heuristics too, in order to determine what language a file uses.
I haven't looked any deep into the docs, but I suppose it would look into some of the keywords that are unique to QB64; there's also the fact that most of our modern keywords start with an underscore, things like that.