Hi all - Ran into a Google Doc add-on called "Code Blocks" which neatly formats any source code. Makes it easier to read and can be used for a lot of different reasons including documentation. It comes with different options for the language + has color themes that allow you to customize it as required.
In case folks have not heard of it, here it is.
You can download/install this add-on to your Google Doc from here:
If you have/do use some other equally good or better tool for code documentation please post it in the comments. Happy to learn!
(open source and trusted by devs everywhere ❤️)