feat: Syntax highlighting

This commit is contained in:
Yash Mehrotra
2021-06-21 07:55:20 +05:30
parent e663fe1123
commit f1e94423dc
3 changed files with 25 additions and 4 deletions

View File

@@ -6,9 +6,8 @@ defaultContentLanguage = "en"
paginate = 20
pygmentsStyle = "bw"
pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true
# Choose one of emacs, trac or perldoc
pygmentsStyle = "emacs"
[params]
footer = "The Marauders"

View File

@@ -22,8 +22,29 @@ Yo yo yo
5. list
```py
Codeblocks look like this
# Codeblocks look like this
def print():
print('Hello world!')
```
```golang
package main
import (
"fmt"
)
// This is a comment
func main () {
fmt.Println("Hello, world!")
}
```
```bash
PATH=$HOME
cat $HOME/file.txt | while read -n data; do
echo $data
done
```