Code blocks

Show program code with colours for each language, line numbers, highlighted lines and lines that appear one by one.

Add a code block

  1. Click Add in the icons down the left, then Code block.
  2. Pick the Language (JavaScript, Python, Java, C, C++, C#, HTML, CSS, SQL and many more) and a Dark or Light theme.
  3. Paste or type the code.
  4. Choose Line numbers and Lines appear one by one.
  5. Type Highlight lines such as "2, 4-5" to make those lines stand out and dim the rest.
  6. Add a File name if you like; it shows in the window's title bar.
  7. Click Add to slide.

To change it later, double-click the block, or click More and then Edit code…. The Code block section there also has the Language, the theme, Line numbers and Lines one by one.