Google’s making code formatting a breeze in Docs

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.

Google says you’ll be able to access the feature by going to Insert > Building Blocks > Code Block and then selecting the relevant language. You’ll also be able to type “@project assets” into your document to pull up the menu, similar to how you’d summon the emoji picker.
The feature may take a while to roll out — Google’s blog post says some people may not even have it by January 18th, depending on their Workspace’s settings — and it’ll only be available to people with specific subscription tiers. If you’re using a personal Google account, a legacy G Suite account, or various Essential and Starter Workspace tiers, you won’t have access to it, according to the company’s press release. That’s a bit of a bummer for hobbyist coders trying to write instructions for their APIs, though I’ll admit that this feature does seem like it’d be most useful for bigger companies.
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,…
Recent Posts
- Top digital loan firm security slip-up puts data of 36 million users at risk
- Nvidia admits some early RTX 5080 cards are missing ROPs, too
- I tried ChatGPT’s Dall-E 3 image generator and these 5 tips will help you get the most from your AI creations
- Gabby Petito murder documentary sparks viewer backlash after it uses fake AI voiceover
- The quirky Alarmo clock is no longer exclusive to Nintendo’s online store
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010