Pasting code into documents is not the best experience in the world. To work around the lack of exclusive formatting for this purpose, developers use the citation option as an alternative. But the Googlefinally optimized the Google Docs to help those who need to add snippets of lines in Ç🇧🇷 JavaScript🇧🇷 python and the like in one document.
The update was announced on the Google Workspace Updates blog this Wednesday (14).
In a note, Google said it has updated the cloud document editor smart canvas options. The change included an option to format lines of code in C/C++, Java🇧🇷 JavaScript🇧🇷 python and others.
The update gives Google a certain competitive edge.
Until then, text editors did not offer their own function for pasting codes. Before, it was necessary to make a workaround using the citation option, so that the code would not contaminate the layout of the document.
This happened even with the Google Docs, which generally receives updates more frequently than Microsoft’s program. But, by including the function, Google even went ahead of Word, which still does not have a similar option.
With the change, programmers will find it easier to include the codes in their reports and other corporate documents. Teachers will also be able to benefit from the novelty when producing study materials through the text editor of the Workspace suite.
It must be made clear that editors in Markdown have always had a format for codes in any programming language. However, the markup language created by John Gruber and Aaron Swartz is not as popular in the market as Word and Google Docs.

How to paste lines of code in Google Docs?
Fortunately, Google Docs has taken the lead and has been optimized to include code formatting.
Using the option is also very simple: just write or paste the line of code into a Google Docs document. Then, just select the snippet, access the “Insert” menu, enter “Basic elements” and choose the desired language in “Code blocks”.
You can also type an “@” in the document, choose the “Code blocks” option and select a language to edit.
Then just write or paste the lines of code inside the new block.

Who will have access to the Google update?
Google has already started releasing the change to users. But, like every Google Workspace update, the news will be released in stages.
For domains in quick release cycle, the resource began to be made available this Wednesday (14). The forecast is that everyone will receive the change within fifteen days.
in the group of scheduled releasesthe update will arrive from January 3, 2023. Again, everyone should receive the news within a fortnight.
The big however is that this update, at least for now, will be aimed at select groups.
Google reported that only these Workspace plans will receive the news🇧🇷
- Business Standard and Business Plus;
- Enterprise Standard and Enterprise Plus;
- Education Standard, Education Plus, and nonprofit plans.
Therefore, these plans will be left out:
- Essentials;
- Business Starter;
- Enterprise Essentials;
- Education Fundamentals and Teaching and Learning Upgrade;
- Frontline;
- G Suite Basic and Business.
As you might imagine, Gmail’s free plans won’t get the news.
The absence also applies to Google One subscribers.
With information: 9to5Google🇧🇷 Android Police🇧🇷 Google Workspace Updates Blog and The Verge
https://tecnoblog.net/noticias/2022/12/15/google-docs-agora-deixa-voce-colar-codigos-em-c-python-e-mais-sem-truques/