Snippet of HTML Code:
<div class="prewrap">
<pre>
stepsize = .01
samplestimes = 30
universex = seq(-1, 1, stepsize)
universey = sin(pi * universex)
</pre>
</div>
Sample CSS Styles:
#prewrap {
background-color: #e3e3e3;
padding: 26px;
}
pre {
background-color: #e3e3e3;
overflow: scroll;
}
Open in JSFiddle: http://jsfiddle.net/tc7mD/
Tested on Firefox and Chrome running on Kubuntu 13.10