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? |
Beta Was this translation helpful? Give feedback.
-
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{ |
Beta Was this translation helpful? Give feedback.
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!
Beta Was this translation helpful? Give feedback.
All reactions