Syntax Highlighting

Syntax highlighting in code blocks is done using the codehilite and fenced_code extensions. You can create code blocks (language name can be deduced):

1
2
    #!python
    print("Hello World!")
```python
print("Hello World!")
```

If you want to highlight lines, you can use the hl_lines option:

``` { .python hl_lines="1 3" }
print("Hello", end=" ")
print("World", end="")
print("!")
```
1
2
3
4
    #!python hl_lines="1 3"
    print("Hello", end=" ")
    print("World", end="")
    print("!")