# The GitHub blob onebox does not highlight the \`.js.es6\` code

**URL:** https://meta.discourse.org/t/the-github-blob-onebox-does-not-highlight-the-js-es6-code/83600
**Category:** Feature
**Created:** [March 22, 2018, 10:16pm UTC](https://meta.discourse.org/t/the-github-blob-onebox-does-not-highlight-the-js-es6-code/83600 "2018-03-22T22:16:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)
#### Post date: [March 22, 2018, 10:16pm UTC](https://meta.discourse.org/t/the-github-blob-onebox-does-not-highlight-the-js-es6-code/83600/1 "2018-03-22T22:16:26Z")

</div>

> <https://github.com/discourse/discourse/blob/v2.0.0.beta4/app/assets/javascripts/discourse/routes/application.js.es6#L56-L69>

The same code pasted directly into the editor is highlighted:

```plaintext
composePrivateMessage(user, post) {

  const recipient = user ? user.get('username') : '',
      reply = post ? window.location.protocol + "//" + window.location.host + post.get("url") : null;

  // used only once, one less dependency
  return this.controllerFor('composer').open({
    action: Composer.PRIVATE_MESSAGE,
    usernames: recipient,
    archetypeId: 'private_message',
    draftKey: 'new_private_message',
    reply: reply
  });
},

```
