Skip to content

How can I change the line-wrapping tag of code block? #1972

Answered by nobkd
HeekangPark asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Before, <span> tags were used to generate the lines, but they were replaced with divs for highlighted code blocks because of line breaks missing in Firefox when copying code by selection.
    See #1883 and #1885.
  2. A line number class should be fairly easy to implement, as the line index is already used to set the line as highlighted.
    See this code.

I'll try to do a PR: #1973

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nobkd
Comment options

Answer selected by HeekangPark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants