Fyi, there's an add-on for ON 2016 which enables properly formatted code to be inserted in your notes. Here's a screenie from my first test:
Capture.GIF

It's called NoteHighlight2016, available GitHub.

That should make ON a viable coding notebook for some. It's an update of NoteHighlight2013, which you may need for ON 2013I don't know.