How to format code in Google docs

shidong ke
1 min readMar 17, 2019

--

three steps:

  1. Insert Table (1✕1) in the google docs, then fill the cell with the color as some as your editor’s background color
Schematic for the step 1

2. Copy your code into the cell from editor with style

Schematic for the step 2

3. Change the font of the code to a monospaced font

Enjoy your life!

--

--