Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bit-docs-prettify

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bit-docs-prettify

prettify code plugin

  • 0.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by77.78%
Maintainers
4
Weekly downloads
 
Created
Source

bit-docs-prettify

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.

Usage

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.

Contributing

Want to help make bit-docs-prettify even better? See CONTRIBUTING.md.

Looking for a changelog? Try the releases page on GitHub.

Keywords

FAQs

Package last updated on 16 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc