mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
14 lines
527 B
Markdown
14 lines
527 B
Markdown
# language highlight
|
|
|
|
|
|
The code language highlight tool is [Prism](https://github.com/PrismJS/prism). Only supports CSS, JavaScipt and HTML by default. You can load its component to highlight the language you need.
|
|
|
|
|
|
```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>
|
|
```
|
|
|
|
?> See fully supported highlight component [files list](https://github.com/PrismJS/prism/tree/gh-pages/components).
|