# Support auto-highlighting for preformatted code

**URL:** <https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234>\
**Category:** Feature\
**Created:** [3월 28, 2014, 2:52오후 UTC](https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234 "2014-03-28T14:52:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![lidel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lidel/32/115991_2.png) [@lidel](https://meta.discourse.org/u/lidel)\
**Post date:** [10월 1, 2014, 8:42오후 UTC](https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234/12 "2014-10-01T20:42:05Z")

</div>

> [@lidel](#):
>
> how can I add missing language to my instance?

As a quick hack I added missing languages with this small addition to `app.yml`:

```plaintext
hooks:
  after_code:
    - exec:
        cd: $home
        cmd:
          - curl http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/languages/haskell.min.js >> $home/public/javascripts/highlight.pack.js
          - curl http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/languages/lua.min.js >> $home/public/javascripts/highlight.pack.js
          - curl http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/languages/tex.min.js >> $home/public/javascripts/highlight.pack.js

```

---

_[View the full topic](https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234)._
