{"id":474337,"date":"2022-12-15T13:38:07","date_gmt":"2022-12-15T11:38:07","guid":{"rendered":"https:\/\/mybroadband.co.za\/news\/?p=474337"},"modified":"2022-12-15T13:47:48","modified_gmt":"2022-12-15T11:47:48","slug":"google-adding-code-formatting-to-docs","status":"publish","type":"post","link":"https:\/\/mybroadband.co.za\/news\/software\/474337-google-adding-code-formatting-to-docs.html","title":{"rendered":"Google adding code formatting to Docs"},"content":{"rendered":"<p>Google is expanding its &#8220;smart canvas&#8221; system in Docs to include code blocks that will automatically add the proper spacing and colour-coding for a variety of programming languages, the company <strong><a href=\"https:\/\/workspaceupdates.googleblog.com\/2022\/12\/format-display-code-google-docs.html\" target=\"_blank\" rel=\"noopener\">announced<\/a><\/strong>.<\/p>\n<p>Supported programming languages include Python, C, and JavaScript. However, the feature is only available for certain higher-tier Google Workplace accounts.<\/p>\n<p>Google says Workspace Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, Education Standard, Education Plus customers, and Nonprofits accounts will get the feature.<\/p>\n<p>To access the code blocks feature, users must click <em>Insert<\/em>, <em>Building blocks<\/em>, <em>Code blocks<\/em>, and then select their programming language.<\/p>\n<p>Alternatively, users can type &#8220;@project assets&#8221; to pull up the menu.<\/p>\n<p><a  data-lightbox=\"post-image\" href=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-474341\" src=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs.jpg\" alt=\"\" width=\"1200\" height=\"800\" srcset=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs.jpg 1200w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs-600x400.jpg 600w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs-800x533.jpg 800w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2022\/12\/Google-code-blocks-in-Docs-768x512.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>Regarding availability, Google is rolling out the new feature in two phases. It will add code blocks for rapid-release domains from 14 December 2022.<\/p>\n<p>It will start rolling out to &#8220;scheduled release domains&#8221; on 3 January 2023. However, Google notes that it may take an additional 15 days for the feature to be visible to end users for both rollout phases.<\/p>\n<p>Currently, formatting code in Google Docs is somewhat cumbersome, requiring workarounds or add-ons to achieve.<\/p>\n<p>The code blocks feature will help to simplify formatting for eligible Google Docs users.<\/p>\n<hr \/>\n<h2 class=\"my-4\">Now read: <a href=\"https:\/\/mybroadband.co.za\/news\/hardware\/474067-we-built-a-flash-drive-that-hacks-any-computer.html\" rel=\"bookmark\">We built a flash drive that hacks any computer<\/a><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>The code blocks feature will only be available for select Google Workspace account tiers.<\/p>\n","protected":false},"author":341076,"featured_media":465301,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[28709,167,4552,66981,32378,34041],"class_list":["post-474337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-c","tag-google","tag-google-docs","tag-google-workspace","tag-javascript","tag-python"],"_links":{"self":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/474337"}],"collection":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/users\/341076"}],"replies":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/comments?post=474337"}],"version-history":[{"count":1,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/474337\/revisions"}],"predecessor-version":[{"id":474445,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/474337\/revisions\/474445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media\/465301"}],"wp:attachment":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media?parent=474337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/categories?post=474337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/tags?post=474337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}