docsify/docs/language-highlight.md

12 lines
560 B
Markdown
Raw Normal View History

2017-02-13 22:43:58 +08:00
# language highlight
2017-10-13 15:46:32 +08:00
**docsify** uses [Prism](https://github.com/PrismJS/prism) to highlight code blocks in your pages. By default it only supports CSS, JavaScript and HTML. You can make **Prism** load additional languages:
2017-02-13 22:43:58 +08:00
```html
2017-03-10 05:19:07 +08:00
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-php.min.js"></script>
2017-02-13 22:43:58 +08:00
```
2017-03-10 05:19:07 +08:00
?> Check the [component files](https://github.com/PrismJS/prism/tree/gh-pages/components) list for more options.