Hold code snippets with syntax highlighting using the code keyword.
Design intent: Not intended to be an IDE, the code keyword is meant for temporarily holding code snippets for review or limited editing.
- Type the word "code" at the top of your note to activate.
- Add a language after a colon (e.g.
code: py) to enable syntax highlighting.
- If you don't add a language, Antinote will use the default language from Settings > Editor > Code blocks.
- Choose your syntax highlighting themes in Settings > Editor > Code blocks — there are separate pickers for Dark and Light.
- With nothing selected, if your cursor is inside a code block,
⌘C will copy the code block contents.
- Inside "code" notes, the following is disabled: indent stripping, all hyperlink features.