Author Topic: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic  (Read 3058 times)

0 Members and 1 Guest are viewing this topic.

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
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.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #1 on: September 09, 2021, 01:51:43 pm »
All of my programs get recognized as VB.
Shuwatch!

Marked as best answer by hanness on September 09, 2021, 10:43:51 am

FellippeHeitor

  • Guest
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #2 on: September 09, 2021, 01:53:07 pm »
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

FellippeHeitor

  • Guest
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #3 on: September 09, 2021, 01:55:15 pm »
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

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #4 on: September 09, 2021, 02:43:30 pm »
Thanks!

Offline George McGinn

  • Global Moderator
  • Forum Regular
  • Posts: 210
    • View Profile
    • Resume
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #5 on: September 09, 2021, 05:27:46 pm »
@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)




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
____________________________________________________________________
George McGinn
Theoretical/Applied Computer Scientist
Member: IEEE, IEEE Computer Society
Technical Council on Software Engineering
IEEE Standards Association
American Association for the Advancement of Science (AAAS)

FellippeHeitor

  • Guest
Re: When posting a QB64 program to GitHub, GitHub detects it as FreeBasic
« Reply #6 on: September 09, 2021, 07:04:32 pm »
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.