Replies: 2 comments 1 reply
@jimthedev thanks for sharing this idea! :) Currently I don't see "line numbers" as part of the component itself. I personally prefer composition of components wherever it makes sense. @zachleat made a It works super well in combination with the
👀 https://codepen.io/andreruffert/pen/vEOqyGr Would that work in your case, or would you encounter any limitations? |
1 reply
|
Or create your own extended Web Component Starting point: customElements.whenDefined("syntax-highlight").then(SyntaxHighlight=>{
customElements.whenDefined("line-numbers").then(LineNumbers=>{
customElements.define("syntax-highlight-linenumbers",class extends SyntaxHighlight{ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hello there. I think this looks really neat and was curious if line numbers was something that would be possible to add and if you'd be open to it as the maintainer?
Thanks!
All reactions