Code in comments

October 11, 2009
by admin

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!



Leave a Reply

You must be logged in to post a comment.