Merge pull request #19 from 526avijitgupta/syntax-highlighting

feat: Syntax highlighting
This commit is contained in:
Yash Mehrotra
2021-06-24 08:25:18 +05:30
committed by GitHub
3 changed files with 25 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ git submodule add https://github.com/526avijitgupta/gokarna.git themes/gokarna
- Navbar - Navbar
- Footer - Footer
- Inject html - Inject html
- Syntax highlighting (Choose one of emacs, trac, perldoc)
## LICENSE ## LICENSE

View File

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

View File

@@ -22,8 +22,29 @@ Yo yo yo
5. list 5. list
```py ```py
Codeblocks look like this # Codeblocks look like this
def print(): def print():
print('Hello world!') 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
```