I need to style some text within a pre-element. For that, I use an inline span-element like this:
<pre>
some text <span style="background-color:#ddd;">and some text
with a different background</span> and some more text
</pre>
Then the html is rendered, the span-elements background is only changed underneath the text.
Is it somehow possible to make the background-color extend throughout the line without changing display to block or inline-block.
Or is there a way to achieve this with javascript?