Files
zulip/tools/setup/lang.json
Cory Lynch 0965c43238 Add typeahead for syntax highlighting languages.
Modified composebox_typeahead.js to recognize the triple backtick
and tilde for code blocks, and added appropriate typeahead functions
in that file and in typeahead_helper.js.

Additionally, a new file pygments_data.js contains a dictionary of
the supported languages, mapping to relative popularity
rankings. These rankings determine the order of sort of the
languages in the typeahead.

This JavaScript file is actually in static/generated/pygments_data.js, as it
is generated by a Python script, tools/build_pymgents_data.py. This is
so that if Pygments adds support for new languages, the JavaScript file
will be updated appropriately. This python script uses a set of popularity
rankings defined in lang.json.

Corresponding unit tests were also added.

Fixes #4111.
2017-04-28 17:22:59 -07:00

58 lines
903 B
JSON

{
"abap": 27,
"ada": 25,
"awk": 1,
"bash": 7,
"c": 49,
"c#": 47,
"c++": 48,
"cobol": 26,
"cpp": 48,
"csharp": 47,
"css": 48,
"d": 29,
"dart": 28,
"delphi": 42,
"erlang": 10,
"fsharp": 19,
"go": 34,
"groovy": 13,
"haskell": 15,
"html": 30,
"java": 50,
"javascript": 51,
"js": 43,
"julia": 4,
"latex": 40,
"lisp": 18,
"lua": 22,
"mask": 2,
"math": 50,
"matlab": 33,
"mql": 9,
"mql4": 9,
"objective-c": 35,
"objectivec": 35,
"objectpascal": 42,
"pascal": 42,
"perl": 40,
"php": 44,
"pl": 40,
"prolog": 16,
"python": 46,
"quote": 50,
"r": 37,
"rb": 39,
"ruby": 39,
"rust": 8,
"sas": 30,
"scala": 21,
"scheme": 14,
"sql": 32,
"swift": 41,
"tex": 40,
"vb.net": 45,
"vbnet": 45,
"xml": 1
}