Sunday, December 23, 2018

the code HTML tag

You see it all over Stack Overflow, wrapping copy and doing stuff like this:

var scream = function(){
alert("Aaahhhhh!!!");
};

 
 

What is above is:

<code><pre>var scream = function(){<br />
(four spaces go here)alert("Aaahhhhh!!!");<br />
};</pre></code>

 
 

Should I have been doing what everyone else does this entire time on my blog?

No comments:

Post a Comment