Merge pull request #19 from 526avijitgupta/syntax-highlighting
feat: Syntax highlighting
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user