add code block to google docs code example
Example: how to add code in google docs
How to use Code Blocks
Using Code Blocks is equally simple.
Open Google Docs and create a new document. With the document open,
click Add-ons and select Code Blocks from the menu.
A new right sidebar will open (Figure A), where you can make use of the tool.