# Add support for hljs aliases for code hints

**URL:** <https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [February 23, 2018, 10:52am UTC](https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298 "2018-02-23T10:52:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [February 23, 2018, 10:19pm UTC](https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298/7 "2018-02-23T22:19:55Z")

</div>

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:

```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++:

```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)

---

_[View the full topic](https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298)._
