B4X is Recognized as a Language on GitHub

xulihang

Active Member
Licensed User
Longtime User
I just found that B4X is recognized as a language on GitHub. Cool.


1725435190228.png
 

xulihang

Active Member
Licensed User
Longtime User
You may need to update some files.
 

JohnC

Expert
Licensed User
Longtime User
Erel must be very proud of his creation 😊
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

aeric

Expert
Licensed User
Longtime User

aeric

Expert
Licensed User
Longtime User
I have created a Discussion on github

Reply:

This is a known issue due to the fact GitHub's Search and Linguist are not tightly linked... Search lags behind Linguist.

Support for B4X was added in Linguist v8.0.0 released on Monday and this is why I always add this not to the release PRs like #7021:

NOTE: Search results will not reflect changes and new lanuguages until the upstream internal library is updated to pull in the changes from this release and that then deployed to GitHub's Search.
1725607090790.png
 

aeric

Expert
Licensed User
Longtime User
I have updated all my B4X repos on GitHub.
I am using the attached .gitatrributes file (remove .txt file extension before use).
Adapt to your needs (Delete any lines). Cheers!

.gitattributes:
# Auto detect text files and perform LF normalization
* text=auto

# linguist-language
*.b4a linguist-language=B4X
*.b4i linguist-language=B4X
*.b4j linguist-language=B4X
*.b4r linguist-language=B4X
*.bas linguist-language=B4X

# linguist-detectable
*.b4a linguist-detectable=true
*.b4i linguist-detectable=true
*.b4j linguist-detectable=true
*.b4r linguist-detectable=true
*.bas linguist-detectable=true
 

Attachments

  • .gitattributes.txt
    419 bytes · Views: 20

mcqueccu

Well-Known Member
Licensed User
Longtime User
Good but it is not compulsory. Maybe make it an optional checkbox when creating a new project from template.
Of course, I am not saying it should be compulsory.

Its a button, those who like to upload to GitHub can easily do it right from the IDE.
 

josejad

Expert
Licensed User
Longtime User
Top