# How is the Hugo Doc site showing shortcodes in code blocks?

**URL:** <https://discourse.gohugo.io/t/how-is-the-hugo-doc-site-showing-shortcodes-in-code-blocks/9074>\
**Category:** Uncategorized\
**Created:** [November 1, 2017, 8:30pm UTC](https://discourse.gohugo.io/t/how-is-the-hugo-doc-site-showing-shortcodes-in-code-blocks/9074 "2017-11-01T20:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![it-gro](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/it-gro/32/4767_2.png) [@it-gro](https://discourse.gohugo.io/u/it-gro)\
**Post date:** [February 4, 2018, 9:27pm UTC](https://discourse.gohugo.io/t/how-is-the-hugo-doc-site-showing-shortcodes-in-code-blocks/9074/16 "2018-02-04T21:27:02Z")

</div>

> [@Jura](#):
>
> Is it also possible to comment out mixed shortcodes? That’s neither something I could make work.

What do you mean by “mixed” shortcodes? I currently see no limitation using this comment feature.

Playing with a echo shortcode like this:

```go
{{ range (seq 0 (sub (len .Params) 1) ) }}
  {{ $.Get . }}
{{ end }}
{{ $.Inner }}
{{ range (seq (sub (len .Params) 1) -1 0) }}
  {{ $.Get . }}
{{ end }}

```

You can comment out a sequence (you give the comment start (`/*`) and the comment end (`*/`)

```go
{{</* echo 10 11 12 />}}
{{% echo 20 21 22 %}}hello **world** {{% /echo %}}
foo bar
{{< echo 30 31 32 /*/>}}

```

=\>

```go
{{< echo 10 11 12 />}} {{% echo 20 21 22 %}}hello world{{% /echo %}} foo bar {{< echo 30 31 32 />}}

```

There you have the \< and % shortcode usage both at the same time.

```go
{{%/* echo "foo" %}}hello **world** {{% /echo */%}}

```

=\>

```go
{{% echo “foo” %}}hello world{{% /echo %}}

```

I really like this feature - how could a theme [document](https://it-gro.github.io/hugo-theme-w3css-basic.github.io/pages/hugo-theme-w3css-basic/page-shortcodes/) it’s [shortcodes](https://github.com/it-gro/hugo-theme-w3css-basic/blob/master/exampleSite/content/pages/hugo-theme-w3css-basic/page-shortcodes.md) without it?

---

_[View the full topic](https://discourse.gohugo.io/t/how-is-the-hugo-doc-site-showing-shortcodes-in-code-blocks/9074)._
