boschresearch / blech

Blech is a language for developing reactive, real-time critical embedded software.
Apache License 2.0
72 stars 6 forks source link

Blech syntax highlighting in GitHub #60

Closed frameworklabs closed 5 days ago

frameworklabs commented 3 years ago

Is your feature request related to a problem? Please describe. When looking at Blech code (.blc - soon also .blh) on GitHub keywords and other lexical entities (comments etc) are not highlighted / colored. This makes reading Blech code less pleasant.

Describe the solution you'd like Add syntax coloring/highlighting for Blech files on GitHub (and maybe other Source Repos?) The coloring behavior would be equal to what the Blech VS Code Plugin does.

schorg commented 3 years ago

Github uses Linguist for syntax highlighting.

There is an article on Medium about it.

From the contribution guide:

We try only to add languages once they have some usage on GitHub. In most cases we prefer that each new file extension be in use in at least 200 unique :user/:repo repositories before supporting them in Linguist.