# 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:** [March 4, 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:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [March 4, 2017, 9:22pm UTC](https://meta.discourse.org/t/how-does-auto-highlight-all-code-works/58368/2 "2017-03-04T21:22:45Z")

</div>

I don’t know if the code highlighting works with indented code blocks. You may need to use three backticks eg. ```vb

```vb
Sub test()
Dim x As Long

With ActiveCell
For i = 1 To 1000
x = 91 * i
If Right(x, 2) = "22" Then
ActiveCell.Offset(m).Value = i
m = m + 1
End If
Next i

End With

End Sub

```

---

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