Skip to content

Syntax Highlighted Code

The Slides editor provides an easy way to display syntax highlighted code inside of your presentations. This is available through the "Code" block which can be found in the sidebar, next to the other content types like Text and Image. Code that you paste or type will be highlighted in real-time based on the selected language and theme.


Line Numbers & Line Highlights

You can turn line numbers on or off in the block toolbar. When line numbers are enabled, you can optional specify which lines to highlight. This is useful when you want to emphasize specific lines that you'll be talking about. Line highlights are provided as a comma separated list of line numbers. 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. We support highlighting of all of the languages that highlight.js supports, see https://highlightjs.org/static/demo/.

Feedback and Knowledge Base