Insert source code in Google Docs

First,  you’d better disable the  auto-capitilization as follow:

go to Tools > Preferences and UN-check “Automatically capitalize words.

then, Google docs has many add-on.

try to use the Code Pretty

code-pretty

Reference

Add a Comment

Your email address will not be published.

six − 2 =