That’s finally changing.
Google Docs will then create a block and provide the correct color formatting for the selected language.
you might also just jot down the @ symbol in a document, then “code blocks.”
Gmail logins) yet, only Workspace accounts provided by a company or other organization.
It’s not clear when, or if, everyone will be able to try it.
Source:Google Workspace Updates