# Syntax highlighting seems to be not working inside a list

**URL:** <https://meta.discourse.org/t/syntax-highlighting-seems-to-be-not-working-inside-a-list/30452>\
**Category:** Bug\
**Tags:** markdown\
**Created:** [2015 年 6 月 25 日午後 3:43 UTC](https://meta.discourse.org/t/syntax-highlighting-seems-to-be-not-working-inside-a-list/30452 "2015-06-25T15:43:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)\
**Post date:** [2015 年 6 月 25 日午後 3:43 UTC](https://meta.discourse.org/t/syntax-highlighting-seems-to-be-not-working-inside-a-list/30452/1 "2015-06-25T15:43:21Z")

</div>

### This is works (outside of a list, 3 back-ticks syntax):

```javascript
var s = "JavaScript syntax highlighting";
alert(s);

```

### This is not works (a code block inside a list, 3 back-ticks syntax):

1. List item 1

2. List item 2

3. List item 3

### This is works (a code block inside a list with 4 spaces syntax but without highlighting):

1. List item 1

2. List item 2

3. List item 3

So, is it a bug or I have missed something?  
How to do syntax highlighting inside a list?

---

_[View the full topic](https://meta.discourse.org/t/syntax-highlighting-seems-to-be-not-working-inside-a-list/30452)._
