Skip to main content
12 votes

Force GitHub syntax highlighting language on source files

You can now force the language of any file in your repositories using Linguist overrides. GitHub Linguist is the open-source library used to detect the language of files across Github. To force your ....
pchaigno's user avatar
  • 379
5 votes

Force GitHub syntax highlighting language on source files

Sharing my answer here I discovered elsewhere on SO. I discovered that you can add a vim or emacs modeline per the Linguist readme to the top of your source file (unfortunately, required for each ...
ryanjduffy's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible