# Version of highlight.js is outdated

**URL:** https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636
**Category:** Bug
**Created:** [July 5, 2017, 7:31am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636 "2017-07-05T07:31:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vchuravy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vchuravy/32/120525_2.png) [@vchuravy](https://meta.discourse.org/u/vchuravy)
#### Post date: [July 5, 2017, 7:31am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636/1 "2017-07-05T07:31:36Z")

</div>

As far as I know discourse is using `highlight.js` for syntax highlighting.  
Would it be possible to update discourse to the newest version of `highlight.js` ?

---

<div class="post-metadata">

### Author: ![ararslan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ararslan/32/74813_2.png) [@ararslan](https://meta.discourse.org/u/ararslan)
#### Post date: [July 5, 2017, 7:38am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636/2 "2017-07-05T07:38:53Z")

</div>

In particular, the most recent version of highlight.js (as of this writing, 9.12.0) contains updates to the Julia language definition. More recent Julia versions brought significant changes to some aspects of the syntax, and those are not properly captured in the old Julia definitions in highlight.js, so posts in the [Julia Discourse forum](https://discourse.julialang.org) that use modern syntax look kind of funky.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 5, 2017, 8:34am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636/3 "2017-07-05T08:34:38Z")

</div>

Sure @sam is working on related stuff and can look into this soon.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 5, 2017, 9:19am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636/4 "2017-07-05T09:19:15Z")

</div>

I just [updated highlight.js](https://github.com/discourse/discourse/commit/599c681358db6ddd5dd300490335d52347ef4039) to 9.12.0 thanks to the `highlightjs:update` rake task :thumbsup:

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 30, 2017, 2:59am UTC](https://meta.discourse.org/t/version-of-highlight-js-is-outdated/65636/5 "2017-11-30T02:59:22Z")

</div>


