Javascript code example copied into a pre-tag gets executed
<p>I'm trying to add a piece of javascript code to a certain <code>&lt;div&gt;</code>.
I enclosed the code in pre and code tags, but when I actually run this the code gets <em>executed</em>. Obviously, that's not what I want at all.</p>

<pre><code>    var code = '&lt;pre&gt;&lt;code&gt;&lt;script type="text/javascript" src="http://source.com/test.js"&gt;&lt;\/script&gt;\n';
    code = code + '&lt;script type="text/javascript"&gt;\n';
    code = code + '\tadimp.id = ' + 1 + ';\n';
    code = code + '\tadimp.type = ' + 1 + ';\n';
    code = code + '\tadimp.generate();\n';
    code = code + '&lt;\/script&gt;&lt;/code&gt;&lt;/pre&gt;';

    $("#code").html(code);
</code></pre>
