Use the Code block to display syntax-highlighted code in a presentation. Select a language and theme, then type or paste your code. Highlighting updates in real time.

Line numbers & line highlights
You can turn line numbers on or off in the block toolbar. You can also highlight specific lines using a comma-separated list of line numbers or ranges. For example:
1,4,10 will highlight lines 1, 4 and 10.
2,5-15 will highlight lines 2 and 5 through 15.

Supported languages
Syntax highlighting is powered by the open-source highlight.js project. Slides supports the languages listed in the highlight.js demo.