diff --git a/content/contribute/components/code-blocks.md b/content/contribute/components/code-blocks.md index 8a1abdccc0..46d8833d38 100644 --- a/content/contribute/components/code-blocks.md +++ b/content/contribute/components/code-blocks.md @@ -20,6 +20,36 @@ export name= This syntax is reserved for variable names, and will cause the variable to be rendered in a special color and font style. +## Highlight lines + +```text {hl_lines=[7,8]} +incoming := map[string]interface{}{ + "asdf": 1, + "qwer": []interface{}{}, + "zxcv": []interface{}{ + map[string]interface{}{}, + true, + int(1e9), + "tyui", + }, +} +``` + +````markdown +```go {hl_lines=[7,8]} +incoming := map[string]interface{}{ + "asdf": 1, + "qwer": []interface{}{}, + "zxcv": []interface{}{ + map[string]interface{}{}, + true, + int(1e9), + "tyui", + }, +} +``` +```` + ## Bash Use the `bash` language code block when you want to show a Bash script: