Code

Outline supports a wide variety of programming languages in code blocks that can be inserted through the block menu, or with the markdown shortcut ``` . For example…

const counter = function() {
    let count = 0;

    return function() {
        return ++count;
    }
}; 


Other formats such as “diff” are also supported:

@@ -37,7 +37,7 @@ sql {
        #       sqlite
        #       mongo
-       dialect = "sqlite"
+       dialect = "postgresql"

Pasting

When code is pasted from VSCode the language will be automatically detected, it’s also possible to choose the language manually from the menu that appears when focused in a code block.

Line numbers

Line numbers can be disabled as a personal preference in Settings → Preferences if you prefer.