Skip to content

Commit

Permalink
📝 Docs: add Chroma supported languages reference links
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Aug 29, 2022
1 parent e0a7c70 commit 2196a6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions content/posts/basic-markdown-syntax/index.en.md
Expand Up @@ -505,6 +505,9 @@ The HTML looks like this:

### Syntax Highlighting

* [List of Chroma Highlighting Languages - Hugo](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages)
* [Chroma supported languages - Chroma](https://github.com/alecthomas/chroma#supported-languages)

[GFM]^(GitHub Flavored Markdown) also supports syntax highlighting.

To activate it, simply add the file extension of the language you want to use directly after the first code "fence",
Expand Down
3 changes: 3 additions & 0 deletions content/posts/basic-markdown-syntax/index.zh-cn.md
Expand Up @@ -506,6 +506,9 @@ Sample text here...

### 语法高亮

* [Chroma 语言高亮列表 - Hugo](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages)
* [Chroma 支持语言 - Chroma](https://github.com/alecthomas/chroma#supported-languages)

[GFM]^(GitHub Flavored Markdown) 也支持语法高亮。

要激活它,只需在第一个代码 "围栏" 之后直接添加你要使用的语言的文件扩展名,
Expand Down
6 changes: 2 additions & 4 deletions content/tests/highlight/index.en.md
Expand Up @@ -178,10 +178,6 @@ var _str2Array = (str) => {
};
{{< /highlight >}}

---

{{< gist spf13 7896402 >}}

```text
hello world
```
Expand Down Expand Up @@ -289,3 +285,5 @@ Namespace Highlighter.Test
End Class
End Namespace
```

{{< gist spf13 7896402 >}}

0 comments on commit 2196a6a

Please sign in to comment.