Tips/Tools for documenting Write-ups?

I use Joplin (https://joplinapp.org/) to take notes and document write-ups. It’s entirely reliant on markdown/some html to format it, but you can present code in a code block with syntax highlighting.

You can end up with something like this:
Imgur

If you’re not adverse to learning some markdown you could try it out.