From: Kai Moritz Date: Sun, 8 Feb 2026 09:11:53 +0000 (+0100) Subject: Addded an example for syntax highlighting with a short-code X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=5c8d296a8ab4acb93922babc32827544820fc14e;p=website Addded an example for syntax highlighting with a short-code --- diff --git a/exampleSite/content/projects/typo.html b/exampleSite/content/projects/typo.html index 5f126bb8..d3071fd2 100644 --- a/exampleSite/content/projects/typo.html +++ b/exampleSite/content/projects/typo.html @@ -103,4 +103,19 @@ lastmod: "2026-02-03T17:30:49.452Z" </executions> </plugin> +

Syntax Highlighting by Hugo

+

As a code-block...

+ {{< highlight go "linenos=inline, hl_lines=3 6-8, style=emacs" >}} + package main + + import "fmt" + + func main() { + for i := 0; i < 3; i++ { + fmt.Println("Value of i:", i) + } + } + {{< /highlight >}} +

...and inline

+

This is some {{< highlight go "hl_inline=true" >}}fmt.Println("inline"){{< /highlight >}} code.