Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
bit-docs-prettify
Advanced tools
A bit-docs plugin that makes source-code snippets in HTML prettier.
Powered by https://github.com/google/code-prettify.
A working demonstration is available at https://glitch.com/edit/#!/bit-docs-prettify.
Add bit-docs-prettify
as a dependency to your project's package.json
, under the bit-docs
section:
{
"name": "your-project",
...
"bit-docs": {
"dependencies": {
"bit-docs-prettify": "*"
},
...
}
}
Now use the bit-docs
command-line tool to install the added plugin dependency:
./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:
<pre><code class="language-javascript">...</code></pre>
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.
FAQs
prettify code plugin
The npm package bit-docs-prettify receives a total of 15 weekly downloads. As such, bit-docs-prettify popularity was classified as not popular.
We found that bit-docs-prettify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.