Highlight

Render the Hugo highlight shortcode.
{{< highlight go "linenos=table,hl_lines=3" >}}
package main
import "fmt"
func main() { fmt.Println("hello") }
{{< /highlight >}}

Example:

1
2
3
4
5
6
7
package main

import "fmt"

func main() {
    fmt.Println("hello from the highlight shortcode")
}