I use BookStack (bookstackapp.com/) for sysadmin related notes from work and I really like it. You can use the WYSIWYG or just a Markdown one with limited functions.
It may work for coding too.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.