Add highlighted lines in source code
To also visually see how it looks in different themes.
This commit is contained in:
parent
707ebc4cb4
commit
b78befeca8
|
@ -21,9 +21,11 @@ image: images/feature2/color-palette.png
|
|||
|
||||
Verify the following code blocks render as code blocks and highlight properly.
|
||||
|
||||
More about tuning syntax highlighting is the [Hugo documentation](https://gohugo.io/content-management/syntax-highlighting/).
|
||||
|
||||
### Diff
|
||||
|
||||
``` diff
|
||||
``` diff {hl_lines=[4,"6-7"]}
|
||||
*** /path/to/original ''timestamp''
|
||||
--- /path/to/new ''timestamp''
|
||||
***************
|
||||
|
@ -299,4 +301,4 @@ pre[class*="language-"] {
|
|||
color: #db4c69;
|
||||
background: #f9f2f4;
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue