# إضافة دعم لاختصارات hljs في تلميحات الكود

**URL:** <https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [23 فبراير 2018، 10:52ص 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:** 9

<div class="post-metadata">

**Author:** ![Aerijo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aerijo/32/105751_2.png) [@Aerijo](https://meta.discourse.org/u/Aerijo)\
**Post date:** [23 فبراير 2018، 11:32م UTC](https://meta.discourse.org/t/add-support-for-hljs-aliases-for-code-hints/81298/9 "2018-02-23T23:32:48Z")

</div>

I don’t think the auto highlighting is working then. Even on this site, observe the following

No language name:

```plaintext
let x = 10;

function root(n) {
  return Math.sqrt(n);
}

console.log(root(x));

```

`javascript` as language name:

```javascript
let x = 10;

function root(n) {
  return Math.sqrt(n);
}

console.log(root(x));

```

There is a difference in appearance, indicating a different set of rules is being applied (even though both are identical JavaScript). And it’s not just these two language that would benefit from allowing synonyms; there are quite a few that offer alternative naming.

---

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