Homec4science

Split filename-based and language-based syntax highlighting APIs

Authored by epriestley <git@epriestley.com> on Jul 6 2011, 19:59.

Description

Split filename-based and language-based syntax highlighting APIs

Summary:
The major change here is the introduction of getLanguageFromFilename(). Then I
reorganized some things.

This needs some Phabricator-side changes although it doesn't break anything, it
just disrupts some highlighting.

Test Plan: Highlighted PHP, python, invalid-syntax PHP, and invalid-syntax
python in Paste.
Reviewed By: tuomaspelkonen
Reviewers: tuomaspelkonen, codeblock, jungejason, aran
CC: aran, epriestley, tuomaspelkonen
Differential Revision: 599

Details

Committed
epriestley <git@epriestley.com>Jul 6 2011, 20:56
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcb145f0b12f9: Provide a (mostly) utf-8 aware, smart shorten function
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU3b514792366f: Split filename-based and language-based syntax highlighting APIs (authored by epriestley <git@epriestley.com>).Jul 6 2011, 20:56