Monday, November 07, 2005

Best Way To Display Script?

When I blog script, I think this is the way to go. Here is a template for five lines of code:

<div NOWRAP style="height:300; width:500; overflow:auto; background-color:#EFEFEF"><code>Insert code line 1 here
Insert code line 2 here
&nbsp; Insert indented code line 3 here
&nbsp; &nbsp; Insert double indented code line 4 here
Insert code line 5 here
</code></div>

You can find/replace double-spaces with "&nbsp; " in your script using notepad. Who said it was going to be easy?

No comments: