Let your code have line numbers.
Code-line.js is a lightweight plugin, it finds every ... in your page, and append line numbers. Most of the features are dependent on CSS to complete, so very flexible & efficient.
It's mainly use with Highlight.js or Prism, but you can also render your code in any way.
---
Let's demonstrate a "Hello, World!" to you.
(Highlight code by Highlight.js)
If you like, keep looking down 😆 or see more Example.
---
``html`
``
npm install code-line
---
The only thing you need to do is:
`html`
`javascript``
// Maybe event-triggered or