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