Google Docs rolls out code blocks for easier formatting

Once implemented, you have to paste or type your code and select Insert > Building Blocks to access a new “Code block” menu. C/C++, Java, JavaScript, Python, and Unset are the five options that are available.

Google Docs’ code blocks have a light grey backdrop, and the top-left corner indicates the language selection. The objective is to make Google Docs’ code more readable.

[Via]