# Support auto-highlighting for preformatted code

**URL:** <https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234>\
**Category:** Feature\
**Created:** [28 Marzo 2014, 2:52pm 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:** 1

<div class="post-metadata">

**Author:** ![Naatan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/naatan/32/108428_2.png) [@Naatan](https://meta.discourse.org/u/Naatan)\
**Post date:** [28 Marzo 2014, 2:52pm UTC](https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234/1 "2014-03-28T14:52:10Z")

</div>

Highlightjs offers “auto highlighting” out of the box. It’d be nice if this functionality could be exposed to Discourse through an admin pref (eg. “Auto highlight preformatted code”). I understand this won’t be relevant for all forums but for some forums (such as the one I manage) it is highly preferable.

---

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