Google’s making code formatting a breeze in Docs
by Mitchell Clark from The Verge - All Posts on (#66VF1)
Code blocks in Docs. | Illustration: The Verge
Google Docs is getting a new feature that will make it easier to show code in an easy-to-understand way. The company announced that it's adding code blocks to its smart canvas" system, which will automatically add the proper spacing and color-coding for a variety of programming languages, such as Python, C, and Javascript.
Before this, getting code to look nice in Google Docs required workarounds or add-ons, which weren't necessarily the most convenient. While that wasn't the end of the world, making sure code displays properly is important for documentation, and having different parts of the code display in different colors makes it much easier to read if there's more than a single line or two.
GIF: Google D...