# How does auto Highlight all code works?

**URL:** <https://meta.discourse.org/t/how-does-auto-highlight-all-code-works/58368>\
**Category:** Product Support\
**Created:** [4 Marzo 2017, 9:07pm UTC](https://meta.discourse.org/t/how-does-auto-highlight-all-code-works/58368 "2017-03-04T21:07:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zbor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zbor/32/67843_2.png) [@zbor](https://meta.discourse.org/u/zbor)\
**Post date:** [4 Marzo 2017, 9:07pm UTC](https://meta.discourse.org/t/how-does-auto-highlight-all-code-works/58368/1 "2017-03-04T21:07:29Z")

</div>

I would like to turn autohighlight for Microsoft Visual Basic for Applications (VBA)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/1/6180dd8129ceb9163fe029c163f23e77fda1ef00.png)

but it doesn’t work as expected.

As I see it only works if code is indented.  
But if that’s true why language recognition?

Could it be forced to recognize language?

Is it possible that first post in this thread [https://online-excel-solutions.com/t/preformatted-text-vba-testing/358](https://online-excel-solutions.com/t/preformatted-text-vba-testing/358) is automatically preformatted?

---

_[View the full topic](https://meta.discourse.org/t/how-does-auto-highlight-all-code-works/58368)._
