Venolio

Code blocks

A code block keeps text exactly as you type it, in a monospaced font, with spaces and line breaks untouched. Use it for commands, configuration and code.

Add a code block

Type /code and choose Code, or type ``` and a space at the start of a line. For a short piece of code inside a sentence, select the text and use Inline code in the formatting toolbar, or type it between backticks.

  • Enter adds a new line inside the block.
  • To leave the block, press Enter three times at its end, press ↓ on its last line, or click below it.

Choose the language and copy

While the cursor is in a code block, a small toolbar shows:

  • Code language: Plain text, bash, c, cpp, csharp, css, go, html, java, javascript, json, kotlin, markdown, mermaid, php, python, ruby, rust, sql, swift, typescript or yaml. The language is kept with the block and goes into Markdown exports as the code fence’s language. Code blocks are not colour-highlighted.
  • Copy code: copies the whole block to the clipboard. The button shows Copied for a moment.

Choosing mermaid turns the block into a diagram: see Diagrams.

  • To show a file or some lines from a GitHub repository that stay up to date, use Code from repository. See Git and code.

About this part of Venolio: Docs and wikis your team edits together

Checked against the app on . The same help is built into the Venolio apps and works offline. Something wrong or missing? Tell us.