Syntax highlighting code
May 13, 2016 · 1 minute read · Commentsgolangcodepython
I learned about how to post syntax highlighted code in a post. Hugo has two options when it comes to syntax highlighting - server side and client side.
This is an example of client side highlighting. You can read all about it here.
# A line of Python
print('Hello world')
// A simple program in Golang
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello world")
}