IT Pro is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission. Learn more

Google Docs integrates leading programming languages for slicker presentations

The collaboration app will soon allow for better code sharing between teams, with in-tool formatting for a number of languages

Google Docs users will soon be able to seamlessly paste code into their documents, with the addition of ‘code blocks’ to the text editor’s smart canvas range of tools.

Through the new feature, users will be able to paste code to industry standards in a range of programming languages. Currently, the blocks support C/C++, Java, JavaScript, and Python.

The feature could prove useful for teams of developers, particularly those who have to regularly share their code with colleagues, either in a presentation setting or over video conferencing.

Before now, users seeking to paste code into Google Docs had limited options. It is possible to manually format code in Docs, as users who have set their documents to automatically detect text markup can type ``` and press ‘enter’ to manually type code (or paste it in with no formatting), and there are a number of third-party extensions and add-ons to perform this function.

However, manual editing can prove tricky and not a consistent process across even the most popular languages as it requires manual indentation and colouration of text that even a programmer may have to double-check, as this is performed automatically in any integrated developer environment (IDE).

Furthermore, employees using a company-issued laptop may not be able to add extensions to their Google Workspace; third-party add-ons could be viewed with suspicion by administrators.

Once rolled out, users can access the feature by selecting Insert then Building Blocks then Code Block. With an integrated solution for the problem, businesses will no longer have to rely on third-party solutions, and can benefit from future updates to the feature down the line such as the addition of more programming languages.

In a blog post on the new feature, Google noted that it will only be available for those with “Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, Education Standard, Education Plus customers, and Nonprofit” accounts.

This means that at present, there are no plans to provide it to users with the cheaper business, enterprise, and educational accounts, nor for legacy and personal accounts.

A screenshot of a user selecting the new Code Block feature inside Google Docs

Google

Building blocks were added as part of a wider suite of features added over the course of 2022, as the firm looked to bulk up the features of its smart canvas. These included the addition of more integrated tools with ‘@-mentions’, including a new email draft template to allow for collaborative crafting of important messages, as well as a chip for importing notes from a meeting within a user’s Google calendar.

Related Resource

Flexible IT models drive efficiency and innovation

A modern approach to infrastructure management

Whitepaper cover with image of woman in glasses sat at a computerFree Download

Organisations that have their Google accounts signed up for Rapid Release, the company’s fast track programme for new features, will receive the update between 14 December and 29 December. 

However, as Rapid Release can lessen the ability for organisation administrators to oversee new features before they are rolled out to their workforce, many businesses operate on Google’s Scheduled Release track, which typically lags behind Rapid Release by around one week.

For those in this category, Google has pencilled in 3 January as the release date, though has noted that it could take until 18 January until all users can access the feature.

IT Pro has approached Google for comment.

Featured Resources

IT best practices for accelerating the journey to carbon neutrality

Considerations and pragmatic solutions for IT executives driving sustainable IT

Free Download

The Total Economic Impact™ of IBM Spectrum Virtualize

Cost savings and business benefits enabled by storage built with IBMSpectrum Virtualize

Free download

Using application migration and modernisation to supercharge business agility and resiliency

Modernisation can propel your digital transformation to the next generation

Free Download

The strategic CFO

Why finance transformation propels business value

Free Download

Recommended

Ionos HiDrive Pro review: Simple cloud file-sharing
collaboration

Ionos HiDrive Pro review: Simple cloud file-sharing

21 Mar 2023
Why Amazon is cutting staff from AWS
Cloud

Why Amazon is cutting staff from AWS

21 Mar 2023
Amazon Web Services review
Amazon Web Services (AWS)

Amazon Web Services review

17 Mar 2023
How to hunt down and eliminate data silos
Data & insights

How to hunt down and eliminate data silos

17 Mar 2023

Most Popular

HMRC lost nearly 50% more devices in 2022
Hardware

HMRC lost nearly 50% more devices in 2022

17 Mar 2023
The big PSTN switch off: What’s happening between now and 2025?
Sponsored

The big PSTN switch off: What’s happening between now and 2025?

13 Mar 2023
Outlook zero day patch causes headaches for Windows admins
Security

Outlook zero day patch causes headaches for Windows admins

15 Mar 2023