Code
Type "code" on the first line to hold a code snippet for review or light editing. Antinote is not an IDE and this mode is deliberately minimal.
Updated for v2.0
Code
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.