# Does Syntax highlighting only work on fenced code blocks but not indented code blocks?

**URL:** <https://meta.discourse.org/t/does-syntax-highlighting-only-work-on-fenced-code-blocks-but-not-indented-code-blocks/121466>\
**Category:** Product Support\
**Created:** [6월 27, 2019, 8:00오전 UTC](https://meta.discourse.org/t/does-syntax-highlighting-only-work-on-fenced-code-blocks-but-not-indented-code-blocks/121466 "2019-06-27T08:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![abcoathup](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abcoathup/32/145066_2.png) [@abcoathup](https://meta.discourse.org/u/abcoathup)\
**Post date:** [6월 27, 2019, 8:00오전 UTC](https://meta.discourse.org/t/does-syntax-highlighting-only-work-on-fenced-code-blocks-but-not-indented-code-blocks/121466/1 "2019-06-27T08:00:22Z")

</div>

Does Syntax highlighting only work on [fenced code blocks](https://spec.commonmark.org/0.29/#fenced-code-blocks) but not [indented code blocks](https://spec.commonmark.org/0.29/#indented-code-blocks)?

### Fenced Code Block

```plaintext
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("Hello World!");

            // Keep the console window open in debug mode.
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

```

### Indented Code Block

```
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("Hello World!");

            // Keep the console window open in debug mode.
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

```

---

_[View the full topic](https://meta.discourse.org/t/does-syntax-highlighting-only-work-on-fenced-code-blocks-but-not-indented-code-blocks/121466)._
