Table of Contents

demo

java and javascript, and there are links:

java-javascript
  • java
  • javascript
1
System.out.println('Hello World!');

golang and python:

golang-python
  • go
  • python
1
2
3
4
5
6
7
package main

import "fmt"

func main() {
    fmt.Println("hello world")
}

syntax

{{< tabbed-codeblock java-javascript “https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md#tabbed-code-block" >}}

<!-- tab java -->

System.out.println(‘Hello World!’);

<!-- endtab -->

<!-- tab javascript -->

console.log(“Hello World!”);

<!-- endtab -->

{{< /tabbed-codeblock >}}

延伸阅读

1.tags-plugins-showcase

2.tabbed code block demo