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