Code is enclosed within tags:
<div style="overflow-x: scroll ">
<table bgcolor="#ffffb0" border="0"
<pre style=" hidden;font-family:monaco;">
I liked this method because the output is monospaced, and the background colored according to the type of code (Python, R, output, etc).
I guess I'll have to look into CSS. If anyone has a good set of instructions to point me to, I'd be grateful.