speed-highlight / core

A lightweight syntax highlighter written in JavaScript
https://speed-highlight.github.io/core/examples/
Creative Commons Zero v1.0 Universal
257 stars 14 forks source link

Ability to hide line numbers #22

Closed vitalybaev closed 2 years ago

vitalybaev commented 2 years ago

Sometimes we don't want to display line numbers.

Describe the solution you'd like It seems that we should add another optional argument to highlightElement. It should be an object with parameters (more settings can be tweaked here in the future).

Describe alternatives you've considered We don't have some solution with this package.

Additional context I can create a PR with this feature. I only want to hear your approval.

matubu commented 2 years ago

this is great idea, you can create a PR with this feature but try to keep the size as small as possible, thanks, Mathias