doc(zh-cn): update all documents
This commit is contained in:
parent
a866744c45
commit
a96c2b0103
24 changed files with 962 additions and 333 deletions
11
docs/zh-cn/language-highlight.md
Normal file
11
docs/zh-cn/language-highlight.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# 代码高亮
|
||||
|
||||
内置的代码高亮工具是 [Prism](https://github.com/PrismJS/prism),默认支持 CSS、JavaScript 和 HTML。如果你需要高亮其语言——例如 PHP——你可以手动引入代码高亮插件。
|
||||
|
||||
```html
|
||||
<script src="//unpkg.com/docsify"></script>
|
||||
<script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
|
||||
<script src="//unpkg.com/prismjs/components/prism-php.js"></script>
|
||||
```
|
||||
|
||||
其他的语言高亮插件可以查看[Prims 仓库](https://github.com/PrismJS/prism/tree/gh-pages/components)。
|
||||
Loading…
Add table
Add a link
Reference in a new issue