Archive for October, 2009

Code in comments

Sunday, October 11th, 2009

From Evan Shelhamer: “Any logged in user can now post code in comments by wrapping it in <pre>code here</pre>. Indentation, line breaks, and special symbols are all preserved. This isn’t the perfect solution but should work 99% of the time. The only possible problem is someone posting a really long single line of code that goes off the page (since lines are never broken inside <pre>).”

Thanks Evan!