I found a plug-in (at least for Google chrome) called Markdown, which is a lightweight markup language used to format text. It is currently used for project communications in the GitHub and BitBucket repositories. I'm sure there are similar solutions, but a browser plugin like Markdown seems like a good way.
Using tags, I can bring the code and scripts, for example, the one that is indicated in the above question, into the desired format. Just adding three backticks (`` '') before and after any code creates a code block.
http://daringfireball.net/projects/markdown/
source share