How could the images be shown in the <pre>.
Added by Rodger Lin almost 12 years ago
I want to add some images into my source tagged by the <pre> and </pre>
just like this page: http://ds9a.nl/docbook/fancy-docbook.html,
Replies (1)
RE: How could the images be shown in the <pre>.
-
Added by Etienne Massip almost 12 years ago
You can simulate a pre using style :
p{font-family:monospace;background-color: #FAFAFA;border: 1px solid #E2E2E2;margin: 1em 1em 1em 1.6em;overflow-x:auto;overflow-y:hidden;padding:8px;width:auto;}. ddd !/images/fav_off.png! dedezdz
Results in:
ddd dedezdz
Or, but this is a bug, you can add an empty <notextile></notextile> at the begining of the pre markup (inside), and the parser seems to handle the remaining text as textile but keeps the pre style:
<pre><notextile></notextile>ddd !/images/fav_off.png! dedezdz</ pre>
Results in:
ddddedezdz
Don't count on this one.