wcoder / highlightjs-line-numbers.js

Line numbering plugin for Highlight.js

Home Page:https://wcoder.github.io/highlightjs-line-numbers.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip some code blocks

peske opened this issue · comments

Is your feature request related to a problem? Please describe.
In some cases, I don't want all the code blocks on a page to be numbered. Although it is currently possible by using block-by-block initialization (hljs.lineNumbersBlock(block)), it would be great if somehow I can mark code blocks to be skipped even with hljs.initLineNumbersOnLoad() initialization.

Describe the solution you'd like
A custom class that can be set to <code> element, marking it for skipping.

Describe alternatives you've considered
N/A

Additional context
N/A

Actually, I've already implemented that in my fork, and I've created a PR here: #65