Code Blocks format code separately from the rest of a note. Text inside a code block keeps spacing and font intact, so snippets stay easy to read.
This feature requires Notability Cloud.
There are two ways to insert a code block:
Tap
in the type toolbar.Use the markdown shortcut (``` and a Space).
Code Blocks support the following languages:
Bash/Shell
C
C#
C++
CSS
Go
Haskell
HTML
Java
JavaScript
JSON
Kotlin
Lua
Markdown
MATLAB
Objective-C
OCaml
PHP
Python
R, Racket
Ruby
Rust
SQL
Swift
TypeScript
Plain Text
The default language is Plain Text. A new language can be chosen from the drop-down or can be typed into the shortcut. The last language used is remembered, so it's applied automatically when a new code block is created.
Each code block created can have its own language.
