Jump to content
  • Google Docs adds 14 new programming languages to code blocks


    Karlston

    • 724 views
    • 2 minutes
     Share


    • 724 views
    • 2 minutes

    In an update to code blocks on Google Docs, Google said it's adding support for 14 new programming languages and other code languages to visualize code easily and make it more readable.

     

    In 2022, Google introduced a new Smart Canvas feature, allowing users to format and display code in Docs via code blocks. The feature helps to visualize code with industry standards and applies the required formatting to make collaboration easier.

     

    It also eliminates the extra work of pasting code into the document and manually applying styles by highlighting text. This can help when documenting software projects, APIs, or coding tutorials, where code snippets are essential for providing examples.

     

    However, smart canvas isn't just limited to code blocks. It lets you insert a variety of things, such as calendar invite templates, @-mentions, email drafts, AI summaries, and templates, and use a pageless format. It offers building blocks for project management tasks like review tracking, team directory, project assets, content launch tracker, and more.

    Google Docs Code Blocks

     

    With the new update, Google Docs code blocks support the following languages:

     

    • C#
    • Go
    • Kotlin
    • PHP
    • Rust
    • TypeScript
    • HTML
    • CSS
    • XML
    • JSON
    • Protobuf
    • Textproto
    • SQL
    • Bash/Shell

     

    To display a code block in Google Docs, click Insert > Building Blocks > Code blocks. Here, you can choose the desired programming language. Workspace admins do not have any control over this feature.

     

    Google said it started the gradual rollout of the update, which will take a few weeks to complete. It will be pushed to Workspace tiers, including Business Standard/Plus, Enterprise Starter/Standard/Plus, Enterprise Essentials Plus, and Education Standard/Plus.

     

    The new language support adds to the new features Google is baking for Docs. It recently introduced an AI automation tool that works across its Workspace apps. For Google Docs, the search giant also ported the audio overview feature you already see in NotebookLM and introduced a text-generator feature called 'Help me refine.'

     

    Source


    Hope you enjoyed this news post.

    Thank you for appreciating my time and effort posting news every day for many years.

    News posts... 2023: 5,800+ | 2024: 5,700+ | 2025 (till end of March): 1,357

    RIP Matrix | Farewell my friend  :sadbye:


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...