Code block examples, highlight and different languages#

Check Hugo official doc

solve this path problem, below we’re using: /jorgelopezblog/killua1short.jpg

Killua
killua having a drink

Examples#

  1. python + monokai
1package main
2
3import "fmt"
4
5func main() {
6    for i := 0; i < 3; i++ {
7        fmt.Println("Value of i:", i)
8    }
9}
  1. go + RPGLE
1package main
2
3import "fmt"
4
5func main() {
6    for i := 0; i < 3; i++ {
7        fmt.Println("Value of i:", i)
8    }
9}
  1. bash + ashen | highlight lines 2,3
1jorge@jorge-HP-Note:~$ git add .
2jorge@jorge-HP-Note:~$ git commit -m "message"
3jorge@jorge-HP-Note:~$ git push origin main
  1. bash + monokai | highlight line 2
1jorge@jorge-HP-Note:~$ git add .
2jorge@jorge-HP-Note:~$ git commit -m "message"
3jorge@jorge-HP-Note:~$ git push origin main
  1. JS + arduino
1package main
2
3import "fmt"
4
5func main() {
6    for i := 0; i < 3; i++ {
7        fmt.Println("Value of i:", i)
8    }
9}

More examples#

  • some