The perfect way to use bootstrap functionality is to use code like below:
<pre class="pre-scrollable" style="max-height: 600px">
Your code goes here
You can either use pre tag without any style element. The block will as long as the code in it. Or, you can put pre-scrollable class in it. The default height is 340. And, it will display a vertical scroll bar.
Share this article, if you like it. And, send me your more suggestions to put in this blog.