github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.12k stars 4.2k forks source link

How to check if syntax highlighting is working? #3718

Closed ppKrauss closed 6 years ago

ppKrauss commented 7 years ago

Syntax highlighting at code into file.md and at a file with specific extension... If not working on my repo, how to check if exist or need be working (and my file has a wrong extension or wrong syntax)

?

Example: no syntax highlighting with .ebnf, at this file.

PuZZleDucK commented 7 years ago

This link has some information on manually defining a language (allowing you to force detection): https://github.com/github/linguist#overrides

It also mentions vim/emacs extensions which enable local checking: https://github.com/github/linguist#using-emacs-or-vim-modelines

I don't run vim or emacs so I haven't tried, but it might be worth setting up just for this.

pchaigno commented 6 years ago

The link in the original issue is not working anymore, but for future reference: if a language is in the list here, then it receives syntax highlighting.