I've spent quite a lot time on this. And the Oscar goes to the Typora(
https://typora.io/).
Pros:
- You can just add any snippet with language specific highlighting. I added a folder with the name quickscript. It has documented snippets, you can even add some equation in Latex then add the implementation as code snippet.
- Available for Mac, Linux, Windows.
- I store all my data in Google Drive.
- All data is stored in Markdown format. This is very important. You can easily export your notes or edit from raw version even if app would stop working one day.
- Realtime preview of markdown.
- Some sort of Latex support. Well if you are researcher this is very very cool.
- Crazy themes. Mine seems like exactly Bear note app.
Cons:
- No mobile client. But you can use a markdown editor with Google Drive support.
- It might have some non-critical bugs now and then.