zulip/tools/setup
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
..
emoji Fix provisioning failing due to partial downloads. 2017-04-22 21:16:11 -07:00
__init__.py Add __init__.py to tools/ and tools/setup/. 2016-07-20 18:20:37 -07:00
build_pygments_data.py Add typeahead for syntax highlighting languages. 2017-04-28 17:22:59 -07:00
generate-fixtures Always start python via shebang lines. 2016-11-26 14:46:37 -08:00
generate-test-credentials Always start python via shebang lines. 2016-11-26 14:46:37 -08:00
install-aws-server install-aws-server: Add support for installing zulip.conf. 2017-01-06 21:58:16 -08:00
lang.json Add typeahead for syntax highlighting languages. 2017-04-28 17:22:59 -07:00
postgres-init-dev-db dev: Fix postgres provision errors with non-postgres-readable homedir. 2017-02-11 23:47:07 -08:00
postgres-init-test-db Move tools/install-phantomjs to tools/setup/. 2016-05-26 18:28:14 +05:00
setup_venvs.py Patch activate script only in development. 2016-07-21 14:11:41 -07:00