As a suggestion,
I found a notes APP called
“NOTION”, it’s kinda inbetween Slack and Microsoft office, work places.....
I’ve been creating config layouts of creating different projects, and it lets you just click “copy” to copy code you’ve written. It seem really really good.
The “catch” is that the “personal” is free, where it’s just one user account, but if you wanted to share info/notes, there’s the paid version.
BUT... it allows others to comment, edit notes and also create events.
It’s really good