zulip/tools/lib
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
..
gitlint-rules lint: Fix lint rule error due to unordered list. 2017-04-22 11:38:36 -07:00
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
api_tests.py lint: Clean up E712 PEP-8 rule. 2017-01-23 21:11:18 -08:00
capitalization.py Add mobile auth redirect to custom URI scheme (zulip://). 2017-04-28 11:47:35 -07:00
css_parser.py css: Enforce one selector per line. 2017-03-26 16:57:33 -07:00
find_add_class.py Extract stream_edit.js. 2017-04-25 09:57:32 -07:00
graph.py Add roadmap feature to js-dep-visualizer. 2017-03-21 07:39:30 -07:00
html_branches.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
html_grep.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
pretty_print.py linter: Add support for automatic checking for 4 space indents in HTML. 2017-03-14 14:50:16 -07:00
provision.py Add typeahead for syntax highlighting languages. 2017-04-28 17:22:59 -07:00
sanity_check.py test_server: Improve warning in venv check. 2017-04-05 16:51:23 -07:00
template_parser.py Enhance template parser for comments, Fix deep nesting in Jinja2. 2017-03-11 15:16:44 -08:00
test_script.py test_script: Use LooseVersion for version conparisons. 2017-03-25 19:49:03 -07:00
test_server.py test_server: Improve warning in venv check. 2017-04-05 16:51:23 -07:00