mn-code

0.0.6 • Public • Published

npm version Dependency Status MIT Licence

mn-code

A component to display code with syntax highlight

See the demo

Install

npm install --save mn-code

And bundle dependencies and main files in dist/ with your preferred tool.

Usage

Use the tag mn-code and put your code

<mn-code class="js">
  // a hello world
  console.log('hello')
</mn-code>

the component automatically recognize the language, but if you want specify the language, using a css class. The following classes be available html, css, js, and sh (shell script).

Package Sidebar

Install

npm i mn-code

Weekly Downloads

5

Version

0.0.6

License

MIT

Last publish

Collaborators

  • darlanmendonca