View all Business
View all Cloud
View all Hardware
View all Infrastructure
View all Security
View all Software
View all Technology
Getty Images
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.
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.
Flexible IT models drive efficiency and innovation
A modern approach to infrastructure management
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.
Getting board-level buy-in for security strategy
Why cyber security needs to be a board-level issue
Technology Ecosystem benchmark report
The evolution of the IT industry
Can't choose between public and private cloud? You don't have to with IaaS
Enjoy a cloud-like experience with on-premises infrastructure
How organisations drive employee empowerment and business results with leading digital technology
What you can achieve with a leading approach to digital work
The case for consolidating your comms and IT support
What is HTTP error 503 and how do you fix it?
How to move Microsoft's Windows 11 from a hard drive to an SSD
ITPro is part of Future plc, an international media group and leading digital publisher. Visit our corporate site www.futureplc.com
© Future Publishing Limited, Quay House, The Ambury, Bath BA1 1UA. All rights reserved. England and Wales company registration number 2008885
source
—
Note that any programming tips and code writing requires some knowledge of computer programming. Please, be careful if you do not know what you are doing…