Code Highlighting

Hugo can highlight fenced code blocks during the build. The example site enables line numbers in hugo.toml, while the theme keeps the surrounding typography simple.

1package main
2
3import "fmt"
4
5func main() {
6    message := "Plex Live is ready."
7    fmt.Println(message)
8}

Inline code, such as hugo server, is styled separately from larger blocks. That makes short commands easy to spot inside a paragraph.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sed arcu consequat, placerat sem vitae, porttitor lectus.