Google Docs code blocks now available in additional programming languages

What’s changingIn 2022, we introduced a smart canvas feature that enables you to format and display code in Google Docs with code blocks. We’re adding support for additional code languages to give even more users the ability to easily visualize code, making more code readable and collaboration much easier. Starting today, users can now format code blocks in the following additional programming languages: C# Go Kotlin PHP Rust TypeScript HTML CSS XML JSON Protobuf Textproto SQL Bash/Shell Getting started Admins: There is no admin control for this feature. End users: To format and display code in a Doc, select Insert > Building blocks > Code blocks > choose your programming language or search @ > Code blocks > choose your programming language. Visit the Help Center to learn more about inserting smart chips & building blocks in your Google Doc. Rollout pace Rapid Release domains: Gradual rollout (up to 15 days for feature visibility starting on April 14, 2025 Scheduled Release domains: Gradual rollout (up to 15 days for feature visibility) starting on April 23, 2025 Availability Available for Google Workspace: Business Standard and Plus Enterprise Starter, Standard and Plus Enterprise Essentials Plus Education Standard and Plus Resources Google Help: Insert smart chips & building blocks in your Google Doc Cloud Blog: Transforming collaboration in Google Workspace

Apr 14, 2025 - 18:51
 0
Google Docs code blocks now available in additional programming languages

What’s changing

In 2022, we introduced a smart canvas feature that enables you to format and display code in Google Docs with code blocks. 

We’re adding support for additional code languages to give even more users the ability to easily visualize code, making more code readable and collaboration much easier. Starting today, users can now format code blocks in the following additional programming languages: 
  • C# 
  • Go 
  • Kotlin 
  • PHP 
  • Rust 
  • TypeScript 
  • HTML 
  • CSS 
  • XML 
  • JSON 
  • Protobuf 
  • Textproto 
  • SQL 
  • Bash/Shell 
additional Docs code blocks programming languages


Getting started 

  • Admins: There is no admin control for this feature. 
  • End users: To format and display code in a Doc, select Insert > Building blocks > Code blocks > choose your programming language or search @ > Code blocks > choose your programming language. Visit the Help Center to learn more about inserting smart chips & building blocks in your Google Doc. 

Rollout pace 

Availability 

Available for Google Workspace: 
  • Business Standard and Plus 
  • Enterprise Starter, Standard and Plus 
  • Enterprise Essentials Plus 
  • Education Standard and Plus 

Resources