Any way to Format or Write code in Google Document

360 Views Asked by At

I want to keep the snippets of code in My Google Document but when i paste the code it looks weird . Is there any way to format the code like we have in stackoverflow

where the code is in colors

1

There are 1 best solutions below

1
On BEST ANSWER

paste it into a .doc/docx will have the same indents and colours