This March, Google Docs offered “Lightweight markup language for applying to format using plain text,” as the name suggests, Markdown. Google Docs is currently expanding its support for some Markdown syntax that it already recognizes. Code blocks, Google’s most recent Smart canvas feature for Docs, make it simpler to format and display code.
Add Realmicentral to your Google News feed.
Paste or write your code, then select Insert > Building blocks to access the new Code block menu once it is implemented. The five accessible choices are C/C++, Java, JavaScript, Python, and Disconnected.
In Google Docs, code blocks have a light gray background and indicate the language used in the top left corner. “Collaborators who wanted to present code manually apply styles by highlighting syntax” in the past.
The objective is to enhance collaboration and make code in Google Docs easier to read. In addition to the menu, adding is as simple as using @-search > Code blocks > selecting your programming language. Those who enable Markdown can type “and press Enter.
The full rollout of this will begin today and continue for several weeks:
- Available to non-profits and customers of Google Workspace Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, Education Standard, and Education Plus.
- Neither existing G Suite Basic nor Business customers nor customers of Google Workspace Essentials, Business Starter, Enterprise Essentials, Education Fundamentals, the Teaching, Learning Upgrade, or Frontline are eligible for this service.
- Individual Google Account holders are not eligible for this feature.
Lastly, this feature enables users to edit and display the Google Docs file easily.