Skip to content

Using code blocks in tabs #46

Closed Answered by imfing
zigmd asked this question in Q&A
Sep 12, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Yes, you can put Markdown there:


{{< tabs items="Python,Go" >}}

{{< tab >}}
```python {filename="hello.py"}
print("hello")
```
{{< /tab >}}

{{< tab >}}
```go {filename="hello.go"}
fmt.printf("Hello")
```
{{< /tab >}}

{{< /tabs >}}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zigmd
Comment options

@hugo-sid
Comment options

@imfing
Comment options

@hugo-sid
Comment options

Answer selected by zigmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
how-to How to do something
3 participants