From b78befeca88827c7bcc148301680d821d4eca0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Wed, 12 Feb 2020 22:45:56 +0100 Subject: [PATCH] Add highlighted lines in source code To also visually see how it looks in different themes. --- exampleSite/content/en/posts/syntax-highlight.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/en/posts/syntax-highlight.md b/exampleSite/content/en/posts/syntax-highlight.md index 79359c0..4b691d3 100644 --- a/exampleSite/content/en/posts/syntax-highlight.md +++ b/exampleSite/content/en/posts/syntax-highlight.md @@ -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; } -``` \ No newline at end of file +```