Add support for hljs aliases for code hints

On a whim I just added js and c++ to the highlighted langugages site setting here on Meta and that appears to have done the right thing:

js:

  (function() {
    var ps = require('preload-store').default;

    Discourse.CDN = 'https://d11a6trkgmumsb.cloudfront.net';
    Discourse.BaseUrl = 'meta.discourse.org'.replace(/:[\d]*$/,"");
    Discourse.start();
    Discourse.set('assetVersion','367b6f2f4971d9a8e8f7c712cd0de182');
    Discourse.Session.currentProp("disableCustomCSS", false);
    Discourse.HighlightJSPath = "/highlight-js/meta.discourse.org/7b8d9ac1f45289d14ec6dc64f8a0891c61ec77a5.js";
    Discourse.S3CDN = 'https://d11a6trkgmumsb.cloudfront.net';
    Discourse.S3BaseUrl = '//assets-meta-cdck-prod-meta.s3.dualstack.us-west-1.amazonaws.com';

c++:

  (function() {
    var ps = require('preload-store').default;

    Discourse.CDN = 'https://d11a6trkgmumsb.cloudfront.net';
    Discourse.BaseUrl = 'meta.discourse.org'.replace(/:[\d]*$/,"");
    Discourse.start();
    Discourse.set('assetVersion','367b6f2f4971d9a8e8f7c712cd0de182');
    Discourse.Session.currentProp("disableCustomCSS", false);
    Discourse.HighlightJSPath = "/highlight-js/meta.discourse.org/7b8d9ac1f45289d14ec6dc64f8a0891c61ec77a5.js";
    Discourse.S3CDN = 'https://d11a6trkgmumsb.cloudfront.net';
    Discourse.S3BaseUrl = '//assets-meta-cdck-prod-meta.s3.dualstack.us-west-1.amazonaws.com';

(that said, I can certainly agree that we SHOULD be pulling in the synonyms and allowing those for enabled languages)

7 Likes