mirror of https://github.com/zulip/zulip.git
0965c43238
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. |
||
---|---|---|
.. | ||
gitlint-rules | ||
__init__.py | ||
api_tests.py | ||
capitalization.py | ||
css_parser.py | ||
find_add_class.py | ||
graph.py | ||
html_branches.py | ||
html_grep.py | ||
pretty_print.py | ||
provision.py | ||
sanity_check.py | ||
template_parser.py | ||
test_script.py | ||
test_server.py |