MacOS – Code markup in Apple Notes app

formattingmacosnotes.app

I am currently running macOS Sierra (10.12.6) and was wondering if there is an easy way to format code (like there is for Title, Heading, etc.) in Apple's Notes app?

I'm open to any workarounds to achieve this. I would like to have syntax highlighting as you would see in a text editor (like Atom or Sublime).

Best Answer

Notes in macOS High Sierra includes a Monospaced format.

In addition to the existing format types such as Title, Heading and Body, there is a new format named ‘Monospaced’. This format is a variation of the Body format but with a monospaced font family.

macOS High Sierra Hidden Features, Notes.app