Closed ghost closed 9 years ago
If there are enough people using it on GitHub you can open a pull request. It's quite simple to add a new language, see https://github.com/github/linguist#contributing
Is there some magic involved in performing the actual syntax highlighting? Or how does it work?
Yes, the magic is done by Pygments :-) Linguist just handles the detection. If you want FreeBASIC to be highlighted in GitHub you'll have to make a pull request for a lexer in Pygments. Their repository in on BitBucket.
I see. There seems to be a lexer for QBasic already, so it should be easy to add FreeBASIC. I'll look into it.
In the meantime, if the two lexers are similar, maybe QBasic can be used in GitHub?
Sure, but we need a way to distinguish between Visual Basic and QBasic/FreeBASIC.
If their lexicals are sufficiently different, the Bayesian classifier should be able to distinguish them. If not, we can use heuristics but they are not enabled yet.
Closing as stale.
It would be nice to have support for FreeBASIC.