How to create a clickable hyperlink within a <pre> block in redmine textile?

976 views Asked by At

I want to paste a block of code or output into a redmine note and reference my source as a clickable URL below it. In redmine's textile, the <pre> tag lets me post code. But I would like the URL reference of that code to be clickable and indented as much as the content above it.

However, the <pre> tag disables the rendering of URLs into clikable hyperlinks. Any way I can have a clickable hyperlink within a <pre> block in redmine's textile markup?

1

There are 1 answers

0
Julien Lamarche On

Prepend <notextile></notextile> to the first line of your <pre> block.

<pre>
<notextile></notextile>t.integer :status
-- http://stackoverflow.com/a/21185479/1611925
</pre>