mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
docs: switch to lineNos=true #169
be a role model and adhere to the docs
This commit is contained in:
parent
7c42d47a73
commit
047606ff45
1 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ title = "Highlight"
|
||||||
|
|
||||||
The `highlight` shortcode renders your code with a syntax highlighter.
|
The `highlight` shortcode renders your code with a syntax highlighter.
|
||||||
|
|
||||||
{{< highlight lineNos="table" type="py" wrap="true" >}}
|
{{< highlight lineNos="true" type="py" wrap="true" >}}
|
||||||
print("Hello World!")
|
print("Hello World!")
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ While the examples are using shortcodes with named parameter it is recommended t
|
||||||
{{% tab title="codefence" %}}
|
{{% tab title="codefence" %}}
|
||||||
|
|
||||||
````md
|
````md
|
||||||
```py { lineNos="table" wrap="true" }
|
```py { lineNos="true" wrap="true" }
|
||||||
print("Hello World!")
|
print("Hello World!")
|
||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
@ -33,7 +33,7 @@ print("Hello World!")
|
||||||
{{% tab title="shortcode" %}}
|
{{% tab title="shortcode" %}}
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{</* highlight lineNos="table" type="py" wrap="true" */>}}
|
{{</* highlight lineNos="true" type="py" wrap="true" */>}}
|
||||||
print("Hello World!")
|
print("Hello World!")
|
||||||
{{</* /highlight */>}}
|
{{</* /highlight */>}}
|
||||||
````
|
````
|
||||||
|
@ -42,7 +42,7 @@ print("Hello World!")
|
||||||
{{% tab title="shortcode (positional)" %}}
|
{{% tab title="shortcode (positional)" %}}
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{</* highlight py "lineNos=table,wrap=true" */>}}
|
{{</* highlight py "lineNos=true,wrap=true" */>}}
|
||||||
print("Hello World!")
|
print("Hello World!")
|
||||||
{{</* /highlight */>}}
|
{{</* /highlight */>}}
|
||||||
````
|
````
|
||||||
|
@ -54,7 +54,7 @@ print("Hello World!")
|
||||||
{{ partial "shortcodes/highlight.html" (dict
|
{{ partial "shortcodes/highlight.html" (dict
|
||||||
"context" .
|
"context" .
|
||||||
"content" "print(\"Hello World!\")"
|
"content" "print(\"Hello World!\")"
|
||||||
"lineNos" "table"
|
"lineNos" "true"
|
||||||
"type" "py"
|
"type" "py"
|
||||||
"wrap" "true"
|
"wrap" "true"
|
||||||
)}}
|
)}}
|
||||||
|
@ -68,7 +68,7 @@ print("Hello World!")
|
||||||
{{ partial "shortcodes/highlight.html" (dict
|
{{ partial "shortcodes/highlight.html" (dict
|
||||||
"context" .
|
"context" .
|
||||||
"content" "print(\"Hello World!\")"
|
"content" "print(\"Hello World!\")"
|
||||||
"options" "lineNos=table,wrap=true"
|
"options" "lineNos=true,wrap=true"
|
||||||
"type" "py"
|
"type" "py"
|
||||||
)}}
|
)}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue