Is it possible to write a php function that wraps every newline inside a <pre></pre> block with a <code></code> block?
An example would be something like:
<pre>
<code>first line here</code>
<code>second line here</code>
<code>third line here</code>
</pre>