# Support auto-highlighting for preformatted code

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

<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:** [March 28, 2014, 6:10pm UTC](https://meta.discourse.org/t/support-auto-highlighting-for-preformatted-code/14234/3 "2014-03-28T18:10:59Z")

</div>

So far all the code that was inserted using the “Preformatted text” button in the editor has appeared without highlighting on [our forums](http://forum.komodoide.com).

[An example snippet that I had to manually edit](http://forum.komodoide.com/t/display-current-cursor-position-from-top-of-file/53/6) to add the tripple quotes and language definition:

```
var sm = ko.views.manager.currentView.scimoz;
// Get character length:
var msg = "Length: " + sm.getTextRange(0, sm.currentPos).length;
// Get byte length:
//var msg = "Length: " + sm.currentPos;

// Use statusbar to show where you are:
ko.statusBar.AddMessage(msg, "find", 5000, true);

```

Seems to not be working here either? Of course I can manually add the tripple quotes and language definition but the point is that this should happen automatically when using the “Preformatted text” button.

---

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