prettify code plugin
A bit-docs plugin that makes source-code snippets in HTML prettier.
Powered by
A working demonstration is available at
Add bit-docs-prettify as a dependency to your project's package.json, under the bit-docs section:
``json`
{
"name": "your-project",
...
"bit-docs": {
"dependencies": {
"bit-docs-prettify": "*"
},
...
}
}
Now use the bit-docs command-line tool to install the added plugin dependency:
`shell`
./node_modules/bit-docs/bin/bit-docs
Your project should now support syntax highlighting of source-code snippets in the following languages:
javascript, js, clike, css, markup, xml, html, mathml, svg
Use the following HTML code to trigger syntax highlighting of a source-code snippet:
`html`...
You can replace language-javascript with an option from the list of supported languages above, like language-js.
Want to help make bit-docs-prettify even better? See CONTRIBUTING.md`.
Looking for a changelog? Try the releases page on GitHub.