I finally got around to Googling the problem. I'll repeat it here, just in case this helps someone else.
This is how I was doing it until today:
<code>
def double(x):
return x*2
</code>
But now I know about <pre></pre> and I can write this instead:
<pre>
def double(x):
return x*2
</pre><
To show this:
def double(x):
return x*2
Much better !
This isn't working so well for me. I want to insert white space, just plain white space. Looking at your post, I thought I could use the pre tag with white space in the middle of it.
ReplyDeleteBut apparently blogger hates it if I ever mention . I don't even know if that's going to show up right in the comment here. But anyway, I thought I'd be able to insert some white space using the pre tag, but it appears that it won't let me do it without inserting line breaks.
Is there any way to use the pre tag without it putting the line breaks with it? Thanks.
It is clear on what user should do. Can you kindly make it more elaborate
ReplyDeleteDomain Hosting