This is a new template for
Just paste in the new code in for the bbcode_code, bbcode_html and bbcode_php templates. Then change
in the bbcode_html template, and change
in the bbcode_php template.
Note that in the image provided, the number of lines was set to 10 to show multiple posts. Default is 30 in
Settings > Options > BB Code > Maximum
Code:
, [html] and [php] bbcodes. With these the horizontal scrolling actually works and there is no word wrapping. In Chrome you can resize the box too.
[code]
<div class="bbcode_container" style="resize:vertical;">
<div class="bbcode_description">{vb:rawphrase code}:</div>
<div class="bbcode_code" style="overflow:auto;<vb:if condition="$vboptions['codemaxlines']">height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>
<pre style="overflow:hidden;display:inline-block;margin:0px;resize:none;">{vb:raw code}</pre>
</div>
</div>
Just paste in the new code in for the bbcode_code, bbcode_html and bbcode_php templates. Then change
{vb:rawphrase code} to {vb:rawphrase html_code}
in the bbcode_html template, and change
{vb:rawphrase code} to {vb:rawphrase php_code}
in the bbcode_php template.
Note that in the image provided, the number of lines was set to 10 to show multiple posts. Default is 30 in
Settings > Options > BB Code > Maximum
Code:
Lines.