Google Docs rolling out code blocks for easier formatting and display

Google Docs rolling out code blocks for easier formatting and display

Google’s latest Smart canvas feature for Docs is code blocks that let you more easily format and display code.

Once rolled out, paste/write your code and then Insert > Building blocks, which will offer a new “Code block” menu. The five available options are C/C++, Java, JavaScript, Python, and Unset.

Code blocks in Google Docs feature a light gray background, while the chosen language is noted in the top-left corner. Previously, “collaborators who want[ed] to present code [had] to paste it in the document and then manually apply styles by highlighting syntax.”

The goal is to make code more readable in Google Docs and improve collaboration. Besides the menu, you can easily add by using @-search > Code blocks > choose your programming language, while those with Markdown enabled can type “` and press Enter.

This is starting to roll out today and will be fully launched over the coming weeks:

  • Available to Google Workspace Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, Education Standard, Education Plus customers, and Nonprofits 
  • Not available to Google Workspace Essentials, Business Starter, Enterprise Essentials, Education Fundamentals, the Teaching and Learning Upgrade, Frontline, nor legacy G Suite Basic and Business customers 
  • Not available to users with personal Google Accounts

More on Google Docs:

FTC: We use income earning auto affiliate links. More.

Check out 9to5Google on YouTube for more news:

#Google #Docs #rolling #code #blocks #easier #formatting #display

About admin

Leave a Reply

Your email address will not be published. Required fields are marked *