This example
import numpy as np
from numpy.lib.stride_tricks import as_strided
from functools import wraps
from textwrap import dedent
np.set_printoptions(edgeitems=3,linewidth=80,precision=2,
suppress=True,threshold=100)
looks like his
<pre class="jive_text_macro jive_macro_code " jivemacro="code" ___default_attr="c#" data-renderedposition="34_8_916_96" >
<p>import numpy as np</p>
<p>from numpy.lib.stride_tricks import as_strided</p>
<p>from functools import wraps</p>
<p>from textwrap import dedent</p>
<p>np.set_printoptions(edgeitems=3,linewidth=80,precision=2,</p>
<p> suppress=True,threshold=100)</p>
</pre>
<p></p></body>
So I just use Notepad++ or whatever and replace the <p>, </p> etc stuff
Actually I have a script somewhere that does similar stuff.
As for wrap around text and multilines, you may have to do some text editing, but be careful of trying to strip too much away