# L'evidenziazione della sintassi funziona solo per i blocchi di codice delimitati da recinzioni e non per quelli indentati?

**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:** [27 Giugno 2019, 8:00am 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:** 2

<div class="post-metadata">

**Author:** ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)\
**Post date:** [27 Giugno 2019, 9:31am UTC](https://meta.discourse.org/t/does-syntax-highlighting-only-work-on-fenced-code-blocks-but-not-indented-code-blocks/121466/2 "2019-06-27T09:31:16Z")

</div>

It can work for both, depending on settings. Here on meta `default code lang` is text and `autohighlight all code` is false, so indented code is never highlighted and fenced code only when a language is specified.

```cs
// 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)._
