0.4.2 • Published 3 months ago

bit-docs-prettify v0.4.2

Weekly downloads
5
License
MIT
Repository
github
Last release
3 months ago

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.

0.4.2

3 months ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

6 years ago

0.2.2-9

6 years ago

0.2.2-8

6 years ago

0.2.2-7

6 years ago

0.2.2-6

6 years ago

0.2.2-5

6 years ago

0.2.2-4

6 years ago

0.2.2-3

6 years ago

0.2.2-2

6 years ago

0.2.2-1

6 years ago

0.2.2-0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2-0

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago