Project

General

Profile

How could the images be shown in the <pre>.

Added by Rodger Lin about 11 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 about 11 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:

ddd  dedezdz

Don't count on this one.

    (1-1/1)