Page MenuHomePhabricator

VE Code block inspector confuses pygments languages and ACE language modes
Closed, ResolvedPublic1 Estimated Story Points

Description

It seems that this element's VE inspector is confusing the lexers of pygments with those of ACE. In ve.ui.MWSyntaxHighlightDialog.prototype.onLanguageInputChange it directly sets the pygments name on the ACE widget, even though there is no actual 1-1 relationship.

We should probably make a mapping of the two so we can translate properly between their identifiers (and possibly provide fallbacks even ?)