How to look for a qualifier for a programming language?
An updated list of language qualifiers can be deduced from the main configuration file of the Linguist repository , languages.yml . For each language in this list, you can use as qualifiers:
- Language name
- Any language
aliases - Any file extension, with or without a host
. .
White spaces should be replaced by dashes (for example, emacs-lisp - one specifier for Emacs Lisp ). Languages ​​with the tm_scope: none entry tm_scope: none not have a specific grammar and will not be highlighted on github.com.
jmm made this reverse engineering effort and received confirmation from one of the GitHub engineers. He discovered a problem with all the information about Linguist and maintains a wiki page with qualifiers for all languages (which may not be relevant).
Does GitHub use this syntax for its wiki?
Yes, but github.com wikis also supports several other formats. You can find the complete list of markup repository .
pchaigno
source share